Subject: Re: [xsl] Pipe Question From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Wed, 8 Jun 2005 07:19:22 +1000 |
On 6/8/05, Karl Stubsjoen <kstubs@xxxxxxxxx> wrote: > How could I use a pipe for this predicate to specifiy the inclusion of > ALL where $match does not exist (is empty)? What is "a pipe for a predicate"? XPath certainly does not define such thing. > > [@sComponentObjectName=$match] > > This written out verbose would be: > > <xsl:choose> > <xsl:when test="$match"> > ... apply-templates with above predicate ... > </xsl:when> > <xsl:otherwise> > ... apply-templates without above predicate ... > </xsl:otherwise> > </xsl:choose> The abbreviated form of the above (if I understand it well) is: <xsl:apply-templates select= "$yourNodeSet[$match][@sComponentObjectName=$match] | $yourNodeSet[not($match)] "/> Cheers, Dimitre Novatchev
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Pipe Question, Karl Stubsjoen | Thread | Re: [xsl] Pipe Question, Karl Stubsjoen |
[xsl] Assigning a boolean value to , Kenneth Stephen | Date | Re: [xsl] Assigning a boolean value, David Carlisle |
Month |