W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2011

Re: Having trouble getting a max( ) value

From: Hans-Juergen Rennau <rennau@bits-ac.com>
Date: Fri, 20 May 2011 14:13:44 +0200
Message-ID: <4DD65AF8.5020100@bits-ac.com>
To: xproc-dev@w3.org, Alex Muir <alex.g.muir@gmail.com>
Hi Alex,

and expanding on what Vojtech said: you can introduce variables at some 
midpoint of your processing by introducing a <p:group> and placing the 
<p:variable>s at the beginning of the <p:group>, like so:

<p:pipeline xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
<p:load href="foo.xml"/>
<p:group>
<p:variable name="x" select="//bar"/>
       ...
</p:group>
</p:pipeline>

Greetings,
-- Hans

Vojtech wrote:
> > To answer your second question first, p:variable must always precede 
all step in the sub-pipeline. In your case, p:variable cannot follow 
p:load.
>
Received on Friday, 20 May 2011 12:14:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 20 May 2011 12:14:21 GMT