This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: srcdir/objdir issues and includingvariableusability issues with xsltproc


On Sat, Mar 08, 2003 at 11:33:28AM +0100, Jirka Kosek wrote:

> catalog file to XML_CATALOG_FILES environment variable which is used by

Sorry, Alex, I should have read the entirety of what you linked to.
Thanks Jirka. However, it does not work :

[moz at lambent doc]$ export XML_DEBUG_CATALOG=1
[moz at lambent doc]$ export XML_CATALOG_FILES=xsl/catalog.xml
[moz at lambent doc]$ xsltproc -o oprofile.html --stringparam version 0.6cvs ./xsl/xhtml.xsl ../doc/oprofile.xml
Resolve: sysID xsl/docbook.xsl
0 Parsing catalog xsl/catalog.xml
xsl/catalog.xml added to file hash
Resolve URI xsl/docbook.xsl
warning: failed to load external entity "xsl/docbook.xsl"
compilation error: file ./xsl/xhtml.xsl line 5 element import
xsl:import : unable to load xsl/docbook.xsl
Catalogs cleanup
Free catalog entry docbook.xsl
Free catalog entry xhtml-common.xsl
Free catalog entry xhtml.xsl
Free catalog entry xhtml-chunk.xsl
Free catalog entry xsl/catalog.xml
Free catalog entry
[moz at lambent doc]$ cat xsl/catalog.xml
<?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">
    <uri
        name="docbook.xsl"
        uri="/usr/share/sgml/docbook/xsl-stylesheets/xhtml//docbook.xsl"/>
    <uri
        name="xhtml-common.xsl"
        uri="../../doc/xsl/xhtml-common.xsl"/>
    <uri
        name="xhtml.xsl"
        uri="../../doc/xsl/xhtml.xsl"/>
    <uri
        name="xhtml-chunk.xsl"
        uri="../../doc/xsl/xhtml-chunk.xsl"/>
</catalog>
[moz at lambent doc]$ cat xsl/xhtml.xsl
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"; version="1.0">

<xsl:import href="docbook.xsl"/>
<xsl:import href="xhtml-common.xsl"/>

<!-- this will give you the doctype on your chunks -->
<xsl:output method="xml" encoding="ISO-8859-1" indent="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
/>

</xsl:stylesheet>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]