- From: Geert Josten <geert.josten@daidalos.nl>
- Date: Thu, 21 Jul 2011 13:48:13 +0200
- To: "XProc Dev (xproc-dev@w3.org)" <xproc-dev@w3.org>
Hi all,
Has it been considered to allow attribute value templates within xproc elements? I noticed James Sulak has mentioned this a few times (http://markmail.org/message/izljaycmqd2vythh, and http://markmail.org/message/nswpbxjxk5cpw6zn), but couldn't find any answer. It can replace simple with-option and with-param elements, but it could give larger simplifications as well. Instead of doing:
<p:declare-step type="ut:xslt" name="current">
<p:input port="source" sequence="true" primary="true"/>
<p:input port="parameters" kind="parameter"/>
<p:output port="result" primary="true"/>
<p:output port="secondary" sequence="true"/>
<p:option name="href" required="true"/>
<p:load name="load-file">
<p:with-option name="href" select="$href"/>
</p:load>
<p:xslt>
<p:input port="stylesheet">
<p:pipe port="result" step="load-file"/>
</p:input>
<p:input port="source">
<p:pipe port="source" step="current"/>
</p:input>
<p:input port="parameters">
<p:pipe port="parameters" step="current"/>
</p:input>
</p:xslt>
</p:declare-step>
Called with for instance:
<ut:xslt>
<p:with-option name="href" select="$href" />
</ut:xslt>
Instead, ut:xslt would become unnecessary, and one would use:
<p:xslt>
<p:input port="stylesheet">
<p:document href="{$href}"/>
</p:input>
</p:xslt>
Kind regards,
Geert
Received on Thursday, 21 July 2011 11:48:38 UTC