Re: Having trouble getting a max( ) value

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 UTC