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=4904>.
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=4904

xsltc doesn't output value of doc/foo node in special case for XHTML

           Summary: xsltc doesn't output value of doc/foo node in special
                    case for XHTML
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


xsltc gets everything correct except for nothing is 
selected by 

  <html><xsl:value-of select="doc/foo"/></html>

All the other processors get the "a" value of the doc/foo node.

Running xalan on output65
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>a</html>


Running XSLTC with Xerces Parser on output65
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";></html>

 glrr 471 =>cat output65.xsl
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
  xmlns="http://www.w3.org/1999/xhtml";>

<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
  doctype-system="DTD/xhtml1-strict.dtd"/>

  <!-- FileName: OUTP65 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 16.2 -->
  <!-- Purpose: Test for special case for XHTML -->

<xsl:template match="/">
  <html><xsl:value-of select="doc/foo"/></html>
</xsl:template>

</xsl:stylesheet>
 glrr 472 =>cat output65.xml
<?xml version="1.0"?>
<doc>
  <foo>a</foo>
</doc>

Reply via email to