xsl-list
[Top] [All Lists]

RE: How can I avaliate an expression XPath in a variable

2002-10-23 03:23:34
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



<Prev in Thread] Current Thread [Next in Thread>