Re: Evaluating replace on string-replace

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