[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:for-each
I have an XML fragment similar to the following: <root> <elementX> <elementY> <name>name1</name> <value>value1</value> </elementY> <elementY> <name>name2</name> <value>value2</value> </elementY> <elementY> <name>name3</name> <value>value3</value> </elementY> </element1.0> </root> and I'm trying to use xsl:for-each to iterate over the name/value tags like so: <xsl:for-each select="/root/elementX/elementY"> name: <xsl:value-of select="name"/> value: <xsl:value-of select="value"/> </xsl:for-each> The XML is more complex than what I have above, but can someone tell me whether this should work or not? Thanks. 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
|