[oXygen-user] XML Spec framework catalog
Sorin Ristache
Mon Jan 19 08:13:26 CST 2009
Hello,
That rewriteSystem element maps the reference to xmlspec.rng from the
sample XML file of type XMLSpec to the local version stored in
frameworks/xmlspec/schema. If you create a new XML document from the
XMLSpec template you see the reference:
<?oxygen RNGSchema="http://www.w3.org/XML/1998/06/schema/xmlspec.rng"
type="xml"?>
The local schema is:
frameworks/xmlspec/schema/xmlspec.rng
If only the predefined scenarios of the document type XMLSpec are used
then you do not need to add uri or rewriteURI elements because the
predefined scenarios use the paths ${frameworks}/xmlspec/fo/xmlspec.xsl,
${frameworks}/xmlspec/html/xmlspec.xsl, etc. If you want to use other
references in your stylesheet you can add uri entries to the XML catalog.
Regards,
Sorin
Florent Georges wrote:
> Hi,
>
> In the catalog for the XML Spec framework, one can read the
> following rule (that's actually the only rule):
>
> <rewriteSystem
> systemIdStartString="http://www.w3.org/XML/1998/06/"
> rewritePrefix="./"/>
>
> While in the DTD (it seems all other schemas have been generated
> from the DTD,) there is the following statement:
>
> TYPICAL INVOCATION:
> # <!DOCTYPE spec PUBLIC
> # "-//W3C//DTD Specification V2.10//EN"
> # "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">
>
> So I wonder if the URIs are actually in sync. Shouldn't the catalog
> contain instead the following rule:
>
> <rewriteSystem
> systemIdStartString="http://www.w3.org/2002/xmlspec/dtd/2.10/"
> rewritePrefix="./"/>
>
> Besides this point, if I am right, rewriteSystem is not suitable for
> stylesheet URI resolution. So shouldn't we have to add the
> corresponding rewriteURI rule too? (whatever the URI actually is)
>
> Regards,
More information about the oXygen-user
mailing list