Subject: RE: [xsl] Testing attribute name and replacing them with other attribute name From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 5 Sep 2005 16:24:28 +0100 |
> I think this will work . . . > > <xsl:template match="@size"> > <xsl:attribute name="lange"><xsl:value-of > select="."/></xsl:attribute> > </xsl:template> > > <xsl:template match="@brand"> > <xsl:attribute name="marke"><xsl:value-of > select="."/></xsl:attribute> > </xsl:template> > > <xsl:template match="@price"> > <xsl:attribute name="preis"><xsl:value-of > select="."/></xsl:attribute> > </xsl:template> Yes, provided you also do <xsl:apply-templates select="@*"/> on the containing element. Michael Kay http://www.saxonica.com/ > > > > -----Original Message----- > From: Thomas Winkler [mailto:thomasm003@xxxxxxxx] > Sent: Monday, September 05, 2005 11:11 AM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Testing attribute name and replacing them with > other attribute name > > Hello, > > I am a newbie in XSL and using Xalan. > > I want to find some attributes by name and then replacing > them with other attributes (actually doing language transformation) : > > for example > > <tshirts size="XXL" brand="Nike" price="14"> > > should be changed into : > > <tshirts ldnge="XXL" marke="Nike" preis="14"> > > > How can this be done ? > > > > Thanks in advance ! > > > > > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - > Hier anmelden: http://mail.yahoo.de
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Testing attribute name an, Kevin L. Cobb | Thread | [xsl] Transcode strings into Numeri, Phillip B Oldham |
Re: [xsl] Transcode strings into Nu, David Carlisle | Date | [xsl] xslt2 complex content sequenc, David Carlisle |
Month |