Subject: RE: [xsl] modify the tag name of a given List Node From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 23 Apr 2010 16:38:52 +0100 |
Write an identity template rule, plus <xsl:template match="keywordDetails/key"> <xsl:element name="key{position()}"> <xsl:copy-of select="label"/> </xsl:element> </xsl:template> Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay > -----Original Message----- > From: Red Light [mailto:skydelta98@xxxxxxxxx] > Sent: 23 April 2010 16:31 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] modify the tag name of a given List Node > > hi, > > > i got a node like this: > > <keywordDetails> > <key><label>PRP</label></key> > <key><label>PRPI</label></key> > <key><label>vf</label></key> > <key><label>vfvfv</label></key> > <key><label>dfvdv</label></key> > <key><label>svddvvd</label></key> > </keywordDetails> > > and i need to tranform it to output like : > > <keywordDetails> > <key1><label>PRP</label></key1> > <key2><label>PRPI</label></key2> > <key3><label>vf</label></key3> > <key4><label>vfvfv</label></key4> > <key5><label>dfvdv</label></key5> > <key6><label>svddvvd</label></key6> > </keywordDetails> > > anybody have an idea about how to do that > > and thanks
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] modify the tag name of a give, Red Light | Thread | RE: [xsl] modify the tag name of a , Red Light |
[xsl] modify the tag name of a give, Red Light | Date | Re: [xsl] modify the tag name of a , Martin Honnen |
Month |