- From: James Fuller <james.fuller.2007@gmail.com>
- Date: Thu, 1 May 2008 22:25:34 +0200
- To: public-xml-processing-model-comments@w3.org
I really like the rationalization that has happened with p:pipeline and p:declare-step ... except for one thing, e.g. the 'declare' in declare-step seems redundant to me, XML mark up is declarative by its very nature, which means we are declaring a step element ;) This was highlighted for me, when I went through the May 1st spec today, as all the earlier XProc examples now use p:declare-step instead of p:pipeline. so I propose we change p:declare-step to p:step this reads more naturally to me, so that the following <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="xinclude-and-validate"> <p:input port="source" primary="true"/> <p:input port="schemas" sequence="true"/> <p:output port="result"> <p:pipe step="validated" port="result"/> </p:output> <p:xinclude name="included"> <p:input port="source"> <p:pipe step="xinclude-and-validate" port="source"/> </p:input> </p:xinclude> </p:declare-step> would simply be <p:step xmlns:p="http://www.w3.org/ns/xproc" name="xinclude-and-validate"> <p:input port="source" primary="true"/> <p:input port="schemas" sequence="true"/> <p:output port="result"> <p:pipe step="validated" port="result"/> </p:output> <p:xinclude name="included"> <p:input port="source"> <p:pipe step="xinclude-and-validate" port="source"/> </p:input> </p:xinclude> </p:step> cmon' ... less letters to type and all that ;) cheers, Jim Fuller
Received on Thursday, 1 May 2008 20:26:08 UTC