[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How can I avaliate an expression XPath in a variab
Hi, > <xsl:variable name="pos" > select="concat('/di/docentes/prof', '[', > position(), ']')"/> > #<xsl:value-of select="translate($pos, ' ', '-')"/> No can do in XSLT, expressions cannot be dynamically constructed, us <xsl:variable name="pos" select="position()"/> <xsl:value-of select="concat('#', /di/docentes/prof[position() = $pos])" /> instead. Cheers, Jarno - Assemblage 23: Disappoint (Funker Vogt Remix) 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
|