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:variable name="x" select="//bar"/>

-- 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 
Received on Friday, 20 May 2011 12:14:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:58 UTC