This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Need help with xalan 2.1.0
- To: docbook <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: Need help with xalan 2.1.0
- From: Eric Richardson <eric at milagrosoft dot com>
- Date: Fri, 13 Jul 2001 08:43:55 -0700
- Organization: MilagroSoft Inc.
- References: <3B4DF48E.185A023E@milagrosoft.com>
Entered BUG report ([ #441079 ] transform broken for xhtml with xalan)
on source forge.
problem:
xhtml/docbook.xsl includes html/docbook.xsl
xhtml has <xsl:output method="xml" and
html has <xsl:output method="html" ...
and xalan doesn't like this.
Changing either so they match fixes the problem. I my experience the xml
output method puts the xml declaration <?xml ...?> at the top and this
creates problems with IE 5 and I think 5.5 so I have had to comment this
out anyway.
Beside the xml declaration, what is the difference between output
methods anyway?
Eric
Eric Richardson wrote:
>
> Hi,
> Trying to get xalan 2.1.0 to work with the 1.41 stylesheets.
>
> Here is the error.
> XSLT Error (javax.xml.transform.TransformerConfigurationException):
> Namespace not supported by SAXParser
>
> Here is my driver file.
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version='1.0'
> xmlns="http://www.w3.org/TR/xhtml1/transitional"
> exclude-result-prefixes="#default">
>
> <xsl:import href="../docbook-xsl/xhtml/docbook.xsl"/>
>
> <!-- override variables defined in param.xsl -->
> <xsl:variable name="toc.section.depth">3</xsl:variable>
> <!-- Add other variable definitions here -->
> <xsl:param name="base.dir" select="'html/'"/>
> <xsl:param name="use.id.as.filename" select="1"/>
> <xsl:param name="html.encoding" select="'ISO-8859-1'"/>
> </xsl:stylesheet>
>
> Any help appreciated.
> Eric