[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Dynamic xsl:value-of
I need to use the "loop-counter" to get an attribute value. Sounds strange, huh? Here's a simplified example: Part of the XML: <db2000> <http> <param name="type0" value="xxx"/> <param name="type1" value="yyy"/> <param name="name0" value="yyy"/> <param name="name1" value="xxx"/> </http> </db2000> I have a xslt-template with something like: <xsl:template match="blabla"> <xsl:value-of select="/db2000/http/param[@name='type{position()}]/@value/> </xsl:template> The problem is that the syntax don't work :) Any ideas on how I can construct the xpath expression dynamically? Jonas Nordström Sigma Exallon 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
|