|
Subject: Re: [xsl] Variables in match expressions From: "António Mota" <amsmota@xxxxxxxxx> Date: Thu, 20 Apr 2006 16:31:25 +0100 |
So i have to do like that,
<xsl:template match="*">
<xsl:if test="count(.|$snode)=1">
...
</xsl:if>
</xsl:template>
but isn't that a waste of processing? I'm matching all nodes when i
really want one specific known node.
Or is the processing of the "default" templates similar to this?
2006/4/20, Michael Kay <mike@xxxxxxxxxxxx>:
> >
> > In XSLT 2.0, you can start a pattern with an id() or key()
> > call, whose the value parameter can be a variable reference.
>
> In XSLT 2.0 you can also use a variable reference within a predicate in a
> match pattern.
>
> Michael Kay
> http://www.saxonica.com/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Variables in match expres, Michael Kay | Thread | RE: [xsl] Variables in match expres, Michael Kay |
| RE: [xsl] Variables in match expres, Michael Kay | Date | RE: [xsl] Help Needed On Re-Organiz, Wendell Piez |
| Month |