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=15373>. 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=15373 xsl:value-of in a top-level xsl:variable returns an element, not text Summary: xsl:value-of in a top-level xsl:variable returns an element, not text Product: XalanJ2 Version: 2.4 Platform: Other URL: http://thomaso.best.vwh.net/apache-bug/copy/testbook.xml OS/Version: FreeBSD Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] <xsl:variable name="booktitle"><xsl:value-of select="/book/booktitle"/></xsl:variable> ... <xsl:template match="/"> ... <xsl:copy-of select="$booktitle"/> ... </xsl:template> The "copy-of" returns <booktitle>...</booktitle>, and not just the text inside the tag, even though "value-of" is used in the definition of the variable. The file testbook.xml above has a stylesheet pi pointing to tryit.xsl . You can process it with: java org.apache.xalan.xslt.Process -XML -IN http://thomaso.best.vwh.net/apache-bug/copy/testbook.xml The output you get is: <?xml version="1.0" encoding="UTF-8"?> <title><booktitle>Interesting Bridge Hands</booktitle></title> I'd expect to get: <?xml version="1.0" encoding="UTF-8"?> <title>Interesting Bridge Hands</title>
