xsl-list
[Top] [All Lists]

Re: Pipe Question

2005-06-07 14:19:22
On 6/8/05, Karl Stubsjoen <kstubs(_at_)gmail(_dot_)com> 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.


[(_at_)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][(_at_)sComponentObjectName=$match]
   |
     $yourNodeSet[not($match)]
   "/>


Cheers,
Dimitre Novatchev

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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