RE: [xsl] Testing attribute name and replacing them with other attribute name

Subject: RE: [xsl] Testing attribute name and replacing them with other attribute name
From: "Kevin L. Cobb" <kevin.cobb@xxxxxxxxxxxx>
Date: Mon, 5 Sep 2005 11:15:35 -0400
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>



-----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