|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Giving values to xsl:variable by xml attribute
How do I set a value of a variable by attribute? Let's say I want to determine the value of a variable from a list by node name (I have the static names in advance): This is my static xsl tree <xsl:variable name="values"> <one>1</one> <two>2</two> </values> This is the input xml: <x value="one"/> and now I want to access it in the xsl: . . . <xsl:value-of name="$values/one"/> This will work, but what if I want the "one" node to be determined by the xml value? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








