W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > July 2011

p:use-when with p:template ?

From: James Fuller <jim@webcomposite.com>
Date: Sat, 23 Jul 2011 18:58:24 +0200
Message-ID: <CAEaz5mt8ShRKukz+ExX0m5BDhsTT7FiB=VHUHdVk5h3syv8ckA@mail.gmail.com>
To: XProc WG <public-xml-processing-model-wg@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 23 July 2011 16:58:51 GMT