[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: strange behaviour in Xalan

Subject: RE: strange behaviour in Xalan
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Sat, 20 Oct 2001 16:00:14 +0100
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.