Relax and Catalog Resolution

Utilizing Oxygen-6.2, Docbook-5.0b1 and Windoz-XP The following Relax oXygen processing instruction: <?oxygen RNGSchema="file:/// _fooRngBase_/docbookxi.rng" type="xml"?> Does not resolve in the catalog: . . <group prefer="system" xml:base="file:///C:/usr/local/docbook/"> <group xml:base="docbook-xml-5.0b1/"> <rewriteSystem systemIdStartString="file:///_fooRngBase_/" rewritePrefix="rng/"/> <rewriteURI uriStartString="file:///_fooRngBase_/" rewritePrefix="rng/"/> </group> </group> . . When utilizing a dtd, catalog resolution is not a problem. Ray

Dear Ray, There are two problems here, one I guess is a spelling error, you have a space after file:///
<?oxygen RNGSchema="file:/// _fooRngBase_/docbookxi.rng" type="xml"?> ------------------------------^
The other problem is that if you turn on the catalog verbosity from Options you will see that oXygen tries to resolve the location file:/_fooRngBase_/docbookxi.rng through the catalog. You need to change the catalog to solve the locations starting with: file:/_fooRngBase_/ instead of file:///_fooRngBase_/ Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Ray Miller wrote:
Utilizing Oxygen-6.2, Docbook-5.0b1 and Windoz-XP
The following Relax oXygen processing instruction:
<?oxygen RNGSchema="file:/// _fooRngBase_/docbookxi.rng" type="xml"?>
Does not resolve in the catalog:
…
…
<group prefer="system" xml:base="file:///C:/usr/local/docbook/">
<group xml:base="docbook-xml-5.0b1/">
<rewriteSystem systemIdStartString="file:///_fooRngBase_/" rewritePrefix="rng/"/>
<rewriteURI uriStartString="file:///_fooRngBase_/" rewritePrefix="rng/"/>
</group>
</group>
…
…
When utilizing a dtd, catalog resolution is not a problem.
Ray
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Ah, and another thing, to have your documents portable it is better to use the public location of the schema: http://www.docbook.org/xml/5.0b1/rng/docbookxi.rng and solve that through the catalog file to a local version. Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com George Cristian Bina wrote:
Dear Ray,
There are two problems here, one I guess is a spelling error, you have a space after file:///
<?oxygen RNGSchema="file:/// _fooRngBase_/docbookxi.rng" type="xml"?> ------------------------------^
The other problem is that if you turn on the catalog verbosity from Options you will see that oXygen tries to resolve the location
file:/_fooRngBase_/docbookxi.rng
through the catalog. You need to change the catalog to solve the locations starting with:
file:/_fooRngBase_/
instead of
file:///_fooRngBase_/
Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Ray Miller wrote:
Utilizing Oxygen-6.2, Docbook-5.0b1 and Windoz-XP
The following Relax oXygen processing instruction:
<?oxygen RNGSchema="file:/// _fooRngBase_/docbookxi.rng" type="xml"?>
Does not resolve in the catalog:
…
…
<group prefer="system" xml:base="file:///C:/usr/local/docbook/">
<group xml:base="docbook-xml-5.0b1/">
<rewriteSystem systemIdStartString="file:///_fooRngBase_/" rewritePrefix="rng/"/>
<rewriteURI uriStartString="file:///_fooRngBase_/" rewritePrefix="rng/"/>
</group>
</group>
…
…
When utilizing a dtd, catalog resolution is not a problem.
Ray
------------------------------------------------------------------------
_______________________________________________ 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
participants (2)
-
George Cristian Bina
-
Ray Miller