forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: Catalog for Docbook Plugin
Date Thu, 28 Oct 2004 06:01:33 GMT
Sean Wheller wrote:
> Ross Gardler wrote:
> >  > The catalog uses nextCatalog
> >  > <nextCatalog catalog="schema/4.2/catalog.xml"/>
> >  > <nextCatalog catalog="schema/4.3/catalog.xml"/>
> >
> > becomes
> >
> > <nextCatalog catalog="4.2/catalog.xml"/>
> > <nextCatalog catalog="4.3/catalog.xml"/>
> 
> To be pure to Forrest, yes, you're right. However, consider that the catalog 
> also locates the custom layer stylesheets.
> The closest I would like the catalog.xml is in resources. See the catalog 
> again. There are 3 directories in resources:
> 1. custom/       -  our custom layer
> 2. schema/      - the DTDs
> 3. stylesheets   - the XSL's
> 
> Moving to schema mean "backward" referencing. As another aptly put it ARPINA.

ARPINA? Google could not answer that one.

I would if we should move Forrest's core catalog.xml
up one directory level. Would that help with consistency?

What you have suggested below is interesting. I had not
considered the use of rewriteSystem and rewriteURI
(i will need to go look up the difference). In the core
catalogs we mainly relied on PublicIdentifiers. This use
of rewriteSystem is neat.

However i don't understand the forrest.a.o/release/ URIs.
We don't have such resources, so this would be confusing.

Why does it need the rewriteSystem for the DTDs
when you have the nextCatalog which would handle
the DTDs via their publicIdentifiers

--David

> Will this be OK.
> 
> <?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">
>     
>     <group prefer="system" 
> xml:base="file:///path/to/forrest/plugins/docbook/resources/">
>         
>         <!-- Resolve DTD URL system ID to local -->
>         <rewriteSystem 
> systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/"
>             rewritePrefix="schema/4.2/"/>
>         
>         <rewriteSystem 
> systemIdStartString="http://www.oasis-open.org/docbook/xml/4.3/"
>             rewritePrefix="schema/4.3/"/>
>         
>         <!-- Resolve XSL URL to local -->
>         <rewriteURI 
> uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
>             rewritePrefix="stylesheets/1.66.1/"/>
>         
>         <rewriteURI 
> uriStartString="http://forrest.apache.org/release/xsl/current/xhtml/"
>             rewritePrefix="custom/xhtml-cust.xsl"/>
>         
>         <rewriteURI 
> uriStartString="http://forrest.apache.org/release/xsl/current/fo/"
>             rewritePrefix="custom/fo-cust.xsl"/>
>         
>         <!-- Resolve DTD Public Identifiers -->
>         <nextCatalog catalog="schema/4.2/catalog.xml"/>
>         <nextCatalog catalog="schema/4.3/catalog.xml"/>
>         
>     </group>
>     
> </catalog>


Mime
View raw message