p:use-when with p:template ?

consider the following;

<p:identity>
<p:input port="source">
<p:inline>
<root>
   <doc p:use-when='$somevar eq 1'>Hello world!</doc>
   <doc>Hello world!</doc>
   <doc>Hello world!</doc>
</root>
</p:inline>
</p:input>
</p:identity>

in current xproc definition we do not allow conditional element
exclusion inside of p:inline [1]

which I understand from reviewing email archive the merits have been debated

but perhaps we should consider their usage in p:template [2] ?

Jim Fuller

[1] XProc conditional element exclusion http://www.w3.org/TR/xproc/#use-when
[2] p:template W3C Note http://www.w3.org/TR/xproc-template/

Received on Saturday, 23 July 2011 16:58:51 UTC