"TAN Kuan Hui" <> wrote in message
news:3f0df144$...
> >
> > and I pass x to a template, how can I send the first "a" to a
> > template, but not recursively also send the second? I use
> > apply-templates "a". Maybe I just need to apply-templates "x/a", but
>
>
> Have you tried x/a[0] ?
This won't work! In XSL arrays start at index '1'. Therefore, you must use:
<xsl:apply-templates select="a[1]"/>
>
> > how do you do that if you are passing x, itself, to start off the
> > template? the 'root' x node is not part of the nodeset, correct?
>
> root x is not part of the nodeset but there is nothing stopping
> you from accessing x from within x/a thru ..
>
>
>
>
|