PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2858 *** shadow/2858 Fri Jul 27 07:45:28 2001 --- shadow/2858.tmp.28979 Fri Jul 27 07:45:28 2001 *************** *** 0 **** --- 1,72 ---- + +============================================================================+ + | xsltc fails conf test namespace30 with name functions on comments | + +----------------------------------------------------------------------------+ + | Bug #: 2858 Product: XalanJ2 | + | Status: NEW Version: 2.0.0 | + | Resolution: Platform: Sun | + | Severity: Normal OS/Version: Solaris | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Expected Output + =============== + <?xml version="1.0" encoding="UTF-8"?> + <out> + name||namespace-uri||local-name|| + name||namespace-uri||local-name||</out> + + Obtained Ouput + ============== + <?xml version="1.0" encoding="UTF-8"?> + <out> + name||namespace-uri||local-name|| + name||namespace-uri||local-name||</out> + + XSL + === + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <!-- FileName: namespace30 --> + <!-- Document: http://www.w3.org/TR/xpath --> + <!-- DocVersion: 19991116 --> + <!-- Section: 4.1 --> + <!-- Creator: David Marston --> + <!-- Purpose: Test name functions on comments. --> + + <xsl:template match="/"> + <out> + <xsl:apply-templates select=".//comment()"/> + </out> + </xsl:template> + + <xsl:template match="comment()"> + <xsl:text> + name|</xsl:text><xsl:value-of select="name()"/><xsl:text>|</xsl:text> + <xsl:text>namespace-uri|</xsl:text><xsl:value-of + select="namespace-uri()"/><xsl:text>|</xsl:text> + <xsl:text>local-name|</xsl:text><xsl:value-of + select="local-name()"/><xsl:text>|</xsl:text> + </xsl:template> + + </xsl:stylesheet> + + XML + === + <?xml version="1.0"?> + <doc> + <!-- This is the 1st comment --> + text-in-doc + <inner> + inner-text + <!-- This is the 2nd comment --> + <sub>subtext</sub> + </inner> + text-in-doc2 + </doc>
