W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2012

Conditional Logic . . . what am I missing?

From: Christopher.R.Ball <christopher.r.ball@gmail.com>
Date: Tue, 01 May 2012 16:51:01 -0400
Message-ID: <4FA04CB5.2030207@gmail.com>
To: xproc-dev@w3.org
I need to conditionally include an element in a pipeline and was rather 
surprised that my only option is to use <p:choose>.

I would have thought I should be able to use 'use-when' but that seems 
to only take static values (which makes me wonder about what it is for).

So I am having to use this:

    <p:when test="$informative-matches = 0">
    <p:insert match="entity/other-searches" position="last-child">
    <p:input port="insertion" select="/entity/music-search"/>

When all I really want is this:

    <p:insert match="entity/other-searches" position="last-child"
    use-when"$informative-matches = 0">
    <p:input port="insertion" select="/entity/music-search"/>

Hopefully, I am overlooking something obvious ;)


Received on Tuesday, 1 May 2012 20:51:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:09 UTC