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=3065 *** shadow/3065 Thu Aug 9 13:02:12 2001 --- shadow/3065.tmp.20860 Thu Aug 9 13:02:12 2001 *************** *** 0 **** --- 1,67 ---- + +============================================================================+ + | xsltc fails XSLTMark test prettyprint xsl:value-of select="concat('<',n | + +----------------------------------------------------------------------------+ + | Bug #: 3065 Product: XalanJ2 | + | Status: NEW Version: CurrentCVS | + | Resolution: Platform: All | + | Severity: Major OS/Version: All | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + xsltc compiles and run this test but the output is incorrect with the < and > + characters not being escaped when enclosing text that is not a tag. + + The problem can be reproduced with the following simplified version of the style + sheet: + + <?xml version="1.0"?> + <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:output method="html" encoding="utf-8"/> + <xsl:template name="element"> + <span class="element"> + <xsl:value-of select="concat('<',name(.),'>')"/> + </span> + </xsl:template> + <xsl:template match="/"> + <html> + <body> + <pre> + <xsl:for-each select="node()"> + <xsl:call-template name="element" /> + </xsl:for-each> + </pre> + </body> + </html> + </xsl:template> + </xsl:stylesheet> + + run against the following XML: + + <?xml version="1.0"?> + <table> + </table> + + xsltc outputs + <html> + <body> + <pre> + <span class="element"><table></span> + </pre> + </body> + </html> + + whereas the expected output is more like -- ignoring indentation + + <html> + <body> + <pre> + <span class="element"><table></span> + </pre> + </body> + </html> \ No newline at end of file
