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

Re: is this valid <xsl:template match="@id"> ?

Subject: Re: is this valid <xsl:template match="@id"> ?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 02 Jan 2003 23:13:31 +0100
Re:  is this valid <xsl:template match="@id"> ?
Have a look into the spec: http://www.w3.org/TR/xslt#creating-attributes. There you can find an enumeration about the errors while creating attributes.

I think it's only a question of simplicity. But I did not work on the spec, so somebody else can maybe tell you more about it.

Regards,

Joerg

SLakshman@xxxxxxxxx wrote:
thanks Joerg. it worked...

Can you tell why is this restriction ?  When we create CHILD ELEMENT or
ATTRIBUTE using DOM, the order did not seem to matter...

regards

Saravanan L


Tuesday, December 31, 2002 6:07 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx cc: From: Joerg Heinicke <joerg.heinicke@xxxxxx> Subject: Re: is this valid <xsl:template match="@id"> ?



Hello Saravanan,

you can not create an attribute after an element, so change

 > <xsl:template match="Item">
 >   <xsl:element name="Item">
 >     <xsl:apply-templates select="Name"></xsl:apply-templates>
 >     <xsl:apply-templates select="@ID"></xsl:apply-templates>
 >   </xsl:element>
 > </xsl:template>

to

 > <xsl:template match="Item">
 >   <xsl:element name="Item">
 >     <xsl:apply-templates select="@ID"></xsl:apply-templates>
 >     <xsl:apply-templates select="Name"></xsl:apply-templates>
 >   </xsl:element>
 > </xsl:template>

Regards,

Joerg


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.