Subject: Re: [xsl] is this valid <xsl:template match="@id"> ? From: Niko Matsakis <niko@xxxxxxxxxxxxx> Date: Thu, 02 Jan 2003 17:30:48 -0500 |
Niko Matsakis DataPower technology
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] is this valid <xsl:templa, Joerg Heinicke | Thread | RE: [xsl] is this valid <xsl:templa, Michael Kay |
Re: [xsl] is this valid <xsl:templa, Joerg Heinicke | Date | RE: [xsl] is this valid <xsl:templa, Greg Alvord |
Month |