[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: strange behaviour in Xalan
> <xsl:template match="boxes"> > <xsl:copy-of select="*|@*"/> > </xsl:template> > > , which in my eyes can cause problems, if the root-element > has attributes. I don't understand why you should think this can cause problems. > 1. Why is the attribute test="1" not causing an error, but > will be copied to the new root-element? You asked for it to be copied by specifying <copy-of select="@*"/> > 2. Where does ' > xmlns:xml="http://www.w3.org/XML/1998/namespace" ' come > from? That namespace declaration is implicit on every node, but it should never be output on serialization. (Though I'm not sure if the spec actually prohibits it). Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|