|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








