Re: [xslt] XML Catalog search ordering



On Mon, Sep 17, 2001 at 04:55:36PM +0100, Justin Fletcher wrote:
> The relevant section of the catalog is :
> 
> <rewriteSystem systemIdStartString="http://www.movspclr.co.uk/dtd/" rewritePrefix="file:///%3CXMLCatalog$Dir%3E/gerph/"/>
> <public publicId="-//Gerph//DTD PRM documentation 1.00//EN" uri="http://www.movspclr.co.uk/dtd/prm.dtd"/>
> 
> and the requested identifiers are "-//Gerph//DTD PRM documentation 1.00//EN"
> and "http://www.movspclr.co.uk/dtd/prm.dtd".
> 
> My understanding runs thus...
> 
> 7.1.2.1: Ok
> 7.1.2.2: System ID was provided. No matching system entry, so skip this
>          rule.
> 7.1.2.3: System ID was provided. Matching rewriteSystem entry, so re-write
>          to file:///%3CXMLCatalog$Dir%3E/gerph/prm.dtd
>          The re-written string is returned.
> 
> That's my understanding... There may be something else that I'm missing
> here.

  Sounds right:

orchis:~/XML -> xmlcatalog --shell
> add rewriteSystem "http://www.movspclr.co.uk/dtd/" "file:///%3CXMLCatalog$Dir%3E/gerph/"
> add public "-//Gerph//DTD PRM documentation 1.00//EN" "http://www.movspclr.co.uk/dtd/prm.dtd"
> dump
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem systemIdStartString="http://www.movspclr.co.uk/dtd/" rewritePrefix="file:///%3CXMLCatalog$Dir%3E/gerph/"/>
<public publicId="-//Gerph//DTD PRM documentation 1.00//EN" uri="http://www.movspclr.co.uk/dtd/prm.dtd"/>
</catalog>
> resolve "-//Gerph//DTD PRM documentation 1.00//EN" "http://www.movspclr.co.uk/dtd/prm.dtd"
file:///%3CXMLCatalog$Dir%3E/gerph/prm.dtd
> exit
orchis:~/XML ->

  Seems to work here ... strange,

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]