W3C home > Mailing lists > Public > xproc-dev@w3.org > January 2012

RE: p:pipeline should make a closure over in-scope variables

From: <vojtech.toman@emc.com>
Date: Wed, 11 Jan 2012 03:16:51 -0500
To: <xproc-dev@w3.org>
Message-ID: <3799D0FD120AD940B731A37E36DAF3FE33FF2234ED@MX20A.corp.emc.com>
> -----Original Message-----
> From: Norman Walsh [mailto:ndw@nwalsh.com]
> Sent: Wednesday, January 11, 2012 3:14 AM
> To: XProc Dev
> Subject: p:pipeline should make a closure over in-scope variables
> 
> For the enhancement request pile:
> 
>   <p:pipeline ...>
>     <p:option name="base.dir" required="true"/>
> 
>     <p:pipeline>
>       <!-- $base.dir should be available here -->

Yes, although we should be careful with situations like this:

  <p:pipeline ...>
    <p:option name="base.dir" required="true"/>

    <p:pipeline>
      <p:option name="base.dir" required="true"/>
      ...

Ideally, also the following should be supported to allow for "global" variables:

<p:library>
  <p:variable name="base.dir" select="..." />
 
  <p:pipeline>
    <!-- $base.dir should be available here -->

Vojtech

--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech
Received on Wednesday, 11 January 2012 08:20:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 11 January 2012 08:20:52 GMT