[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

Subject: RE: 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
cobb testing
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.