[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Pipe Question

Subject: Re: Pipe Question
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 8 Jun 2005 07:19:22 +1000
Re:  Pipe Question
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.