DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25442>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25442

Invalid results from xsl:attribute with Docbook XHTML transform





------- Additional Comments From [EMAIL PROTECTED]  2003-12-16 08:26 -------
Brian,

thanks for addressing the issue.

The stylesheet used is xhtml/docbook.xsl from the docbook project, from
http://docbook.sourceforge.net/projects/xsl/
The version 1.62.0 used is available from URL
http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.62.0.tar.gz?download

Since the docbook project consists of a large set of interrelated non-trivial
stylesheets and the tarball is over 1M in size, I won't attach it to this bug.

The output method is xml, as shown below:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0";
xmlns="http://www.w3.org/1999/xhtml"; exclude-result-prefixes="doc" version="1.0">

<xsl:output method="xml" encoding="UTF-8" indent="no"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<!-- 46 includes omitted -->
</xsl:stylesheet>

So, the output should be XML. However, the part of the <xsl:include>:d
autotoc.xsl quoted in the bug description, 
  <span>
    <xsl:attribute name="class">
       <xsl:value-of select="local-name(.)"/>
  </xsl:attribute>Content</span>

produces in the first-of-first-situation outlined before output like

<span ="">Content</span> 

instead of the expected output 

<span class="sect1">Content</span>

rgds,

Jouni

Reply via email to