xsl-list
[Top] [All Lists]

RE: Apply-Templates

2003-05-12 05:56:22


De : Elmar(_dot_)Hurni(_at_)agi(_dot_)ch 
[mailto:Elmar(_dot_)Hurni(_at_)agi(_dot_)ch]
Hello

salut,

      <xsl:apply-templates select="layout/page-setup/*[$nodeNr]"/>
It does not work. The Nodes to be execute are all Template 

I am assuming that you are defininng nodeNr like this...

<xsl:variable name="nodeNr"><xsl:value-of
select="myNodeNumber"/></xsl:variable>

In this case, in a number context, $nodeNr evaluates to the numerical value
of the tree segment contained in the variable. Which is probably not what
you want.

If you change your variable declaration to 
<xsl:variable name="nodeNr" select="myNodeNumber"/>

things should be better.

If i generate first a Variable, then i get the following error:
      -> NOT A NODE OR NODESET

I don't understand this, though...

Cheers,
Dave.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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