forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Wheller <s...@inwords.co.za>
Subject Re: Catalog for Docbook Plugin
Date Tue, 26 Oct 2004 18:22:05 GMT
On Tuesday 26 October 2004 16:46, 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. 
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>

-- 
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za

Mime
View raw message