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=2834 *** shadow/2834 Thu Jul 26 08:28:37 2001 --- shadow/2834.tmp.17112 Thu Jul 26 08:28:37 2001 *************** *** 0 **** --- 1,46 ---- + +============================================================================+ + | xsltc fails conf test modes11 not selecting comment node, modes12 not sele | + +----------------------------------------------------------------------------+ + | Bug #: 2834 Product: XalanJ2 | + | Status: NEW Version: CurrentCVS | + | Resolution: Platform: All | + | Severity: Minor OS/Version: All | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + According to test modes11, it appears that select="comment()" doesn't work. + + The stylesheet contains + + <xsl:template match="doc"> + <out> + <xsl:apply-templates select="comment()" mode="mode1"/> + </out> + </xsl:template> + + <xsl:template match="comment()" mode="mode1"> + <xsl:value-of select="."/> + </xsl:template> + + <xsl:template match="comment()"> + This test failed to execute properly. + </xsl:template> + + and the xml contains + + <?xml version="1.0" encoding="ISO-8859-1"?> + <doc> + <!-- This test executed properly. --> + </doc> + + xsltc output just the xml declaration and <out/>, which implies it didn't find + the comment node in the source document. It remains to be seen whether it would + have used the correct template based on the mode. + + Test modes12 seems to have the same problem with a processing-instruction node.
