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=2992 *** shadow/2992 Sat Aug 4 22:39:22 2001 --- shadow/2992.tmp.19723 Sat Aug 4 22:39:22 2001 *************** *** 0 **** --- 1,62 ---- + +============================================================================+ + | xsl:copy & root element attributes | + +----------------------------------------------------------------------------+ + | Bug #: 2992 Product: XalanJ2 | + | Status: NEW Version: 2.2.x | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: Xalan | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Check out.xml, it is supposed to be a copy of + test.xml, however, root element attributes are + missing, er, broken. + + >>>>>>> test.xml + + <?xml version="1.0" encoding="UTF-8"?> + + <root xml:lang="en"> + <tag xml:lang="en-US">Color</tag> + <tag xml:lang="ru">╨�╨▓╨╡╤�</tag> + </root> + + >>>>>>> test.xsl + + <?xml version="1.0" encoding="UTF-8"?> + + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:template match="*|@*|comment()|processing-instruction()|text()"> + <xsl:copy> + <xsl:apply-templates + select="*|@*|comment()|processing-instruction()|text()"/> + </xsl:copy> + </xsl:template> + + </xsl:stylesheet> + + >>>>>>> makefile + + XALAN = E:\xml\xalan-j_2_2_D6\bin\xalan.jar + XERCES = E:\xml\xerces-1_4_2\xerces.jar + XP = java -cp $(XALAN);$(XERCES) org.apache.xalan.xslt.Process + DEBUG = -TT -TG -TS -TTC + FLAGS = + + out.xml: test.xml test.xsl makefile + $(XP) $(FLAGS) -IN test.xml -XSL test.xsl -OUT out.xml -XML $(DEBUG) + + >>>>>>> out.xml + + <?xml version="1.0" encoding="UTF-8"?> + <root =""> + <tag xml:lang="en-US">Color</tag> + <tag xml:lang="ru">╨�╨▓╨╡╤�</tag> + </root> \ No newline at end of file
