W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > November 2008

Re: Evaluating replace on string-replace

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 04 Nov 2008 10:39:04 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2prlbijqf.fsf@nwalsh.com>
mozer <xmlizer@gmail.com> writes:

> hum...this one is not ok either since $opos is not bounded at this place...

It was in the original example:

<p:for-each>
  <p:variable name="opos" select="p:iteration-position()"/>
  <p:for-each>
    <p:iteration-source select="//div"/>
    <p:string-replace match="/div/@a"
                      replace="concat($opos,',',p:iteration-position())"/>
  </p:for-each>
</p:for-each>

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Great men too make mistakes, and many
http://nwalsh.com/            | among them do it so often that one is
                              | almost tempted to call them little
                              | men.-- Lichtenberg

Received on Tuesday, 4 November 2008 15:39:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:26 UTC