Catalogs are sometimes not working for resources referenced from RNC schema

Hi, I have just realized that references inside RELAX NG compact schema are not dereferenced using XML catalogs in some situations. How to reproduce problem: mydocbook.rnc: include "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc" start |= db.qandaentry sample.xml <?xml-model href="mydocbook.rnc" type="application/relax-ng-compact-syntax"?> <qandaentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="cs"> ... </qandaentry> Content completition is not working now. The reason is that http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc is not loaded through catalog (there is local copy in oXygen) and as this file is not available at OASIS site at this moment, oXygen (or Jing) is silent but schema is probably not loaded as completition doesn't work. What's really strange is that validation works and schema is loaded, probably using XML catalog. Any clue how to make this work? It works with schemas in XML syntax. And also it works if I use schema from http://docbook.org/xml/5.0/rng/docbookxi.rnc but there is visible lag as schema is fetched over Internet not from local copy using catalog. Thanks in advance, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------

Hello Jirka, We reproduced the problem. There is indeed a problem passing the catalog resolver to Jing. We'll get back with details. Regards, Dan -- Dan Caprioara <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 5/23/2012 8:57 PM, Jirka Kosek wrote:
Hi,
I have just realized that references inside RELAX NG compact schema are not dereferenced using XML catalogs in some situations.
How to reproduce problem:
mydocbook.rnc: include "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc"
start |= db.qandaentry
sample.xml <?xml-model href="mydocbook.rnc" type="application/relax-ng-compact-syntax"?> <qandaentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="cs"> ... </qandaentry>
Content completition is not working now. The reason is that http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc is not loaded through catalog (there is local copy in oXygen) and as this file is not available at OASIS site at this moment, oXygen (or Jing) is silent but schema is probably not loaded as completition doesn't work. What's really strange is that validation works and schema is loaded, probably using XML catalog.
Any clue how to make this work? It works with schemas in XML syntax. And also it works if I use schema from http://docbook.org/xml/5.0/rng/docbookxi.rnc but there is visible lag as schema is fetched over Internet not from local copy using catalog.
Thanks in advance,
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hello Jirka, The fix will be available in oXygen v.14 (middle of June). If you need a nightly build, please let us know. Best regards, Dan On 5/24/2012 11:44 AM, Dan Caprioara wrote:
Hello Jirka,
We reproduced the problem. There is indeed a problem passing the catalog resolver to Jing. We'll get back with details.
Regards, Dan -- Dan Caprioara <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 5/23/2012 8:57 PM, Jirka Kosek wrote:
Hi,
I have just realized that references inside RELAX NG compact schema are not dereferenced using XML catalogs in some situations.
How to reproduce problem:
mydocbook.rnc: include "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc"
start |= db.qandaentry
sample.xml <?xml-model href="mydocbook.rnc" type="application/relax-ng-compact-syntax"?> <qandaentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="cs"> ... </qandaentry>
Content completition is not working now. The reason is that http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc is not loaded through catalog (there is local copy in oXygen) and as this file is not available at OASIS site at this moment, oXygen (or Jing) is silent but schema is probably not loaded as completition doesn't work. What's really strange is that validation works and schema is loaded, probably using XML catalog.
Any clue how to make this work? It works with schemas in XML syntax. And also it works if I use schema from http://docbook.org/xml/5.0/rng/docbookxi.rnc but there is visible lag as schema is fetched over Internet not from local copy using catalog.
Thanks in advance,
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

On 24.5.2012 14:17, Dan Caprioara wrote:
The fix will be available in oXygen v.14 (middle of June). If you need a nightly build, please let us know.
Hi Dan, thanks for fix. It's not urgent I have switched to RNG from RNC for now. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------
participants (2)
-
Dan Caprioara
-
Jirka Kosek