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:input port="source">
   <doc p:use-when='$somevar eq 1'>Hello world!</doc>
   <doc>Hello world!</doc>
   <doc>Hello world!</doc>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:49 UTC