Hi,
> I use the Function <xsl:apply-templates> to Apply a set of Template.
Not that it makes any difference here, the XSLT spec uses the word "instruction" to describe elements in the XSLT namespace; also, with xsl:apply-templates you don't "apply a set of templates", but rather you "select a set of nodes and apply their templates in document order".
> Because the calls are dynamic, i built the Node/Nodepaths up
> as follows:
>
> <xsl:apply-templates select="layout/page-setup/*[$nodeNr]"/>
> It does not work. The Nodes to be execute are all Template
> are linked with
> the Nodes underneath page-setup...
If $nodeNr is of type number, then it's a shorthand for
<xsl:apply-templates select="layout/page-setup/*[position() = $nodeNr]"/>
otherwise the boolean valua of $nodeNr will be used, and that's probably not what you want. Use the predicate above, or make sure $nodeNr is bound to a number.
Cheers,
Jarno - neuroticfish: m.f.a.p.l. (intelligent tribal freak mix)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Apply-Templates
- Elmar . Hurni - Mon, 12 May 2003 08:42:46 -0400 (EDT)
- <Possible follow-ups>
- David Neary - Mon, 12 May 2003 08:58:08 -0400 (EDT)
- Jarno . Elovirta - Mon, 12 May 2003 09:22:09 -0400 (EDT) <=
|
|