|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Testing attribute name and replacing them with oth
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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








