Re: Attribute value templates on xproc elements

I think it's included in the "Dynamics, Flexibility" section of the  
XProc v.Nest ideas:

http://wiki.docbook.org/XProcVNext

but the XProc v.Next is not yet being formally discussed by the XProc  
WG as far as I know...

Romain.

Le 21 juil. 11 à 13:48, Geert Josten a écrit :

> 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 12:17:54 UTC