You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Gary L Peskin <ga...@firstech.com> on 2000/10/29 18:04:39 UTC

Re: problem with evaluate($rtf, $exp) - Correction

Please note the -two- corrections in the snippet below.  Sorry.

Gary

Gary L Peskin wrote:
> Try something like:
> 
> <xsl:element name="these_are_the_nodes_from_the_evaluate_function">
>   <xsl:apply-templates select="xalan:nodeset($rtf)" mode="xpath">
>     <xsl:with-param name="xpath-expr" value="$exp"/>

      <xsl:with-param name="xpath-expr" select="$exp"/>

>   </xsl:apply-templates>
> </xsl:element>
>   .
>   .
>   .
> <xsl:template match="*" mode="xpath">

  <xsl:template match="/" mode="xpath">

>   <xsl:param name="xpath-expr"/>
>   <xsl:for-each select="xalan:evaluate($xpath-expr)">
>     <xsl:copy-of select="."/>
>   </xsl:for-each>
> </xsl:template>