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

RE: Evaluating replace on string-replace

From: <Toman_Vojtech@emc.com>
Date: Thu, 6 Nov 2008 07:37:53 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870D56D1CA@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

> mozer writes:
> 
> > And what about this case
> >
> > <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>
> 
> You're right wrt that case -- it doesn't work.  Wishful thinking on
> Norm's part, I think.
> 

I just noticed that the test system-property-001.xml is wrong as well.
It does this:

<p:string-replace match="/doc/language/@value"
		  replace="p:system-property('p:language')"/>

The XProc extension functions are only available in the processor
context, not when the XPath expression is being evaluated by the step.

Vojtech
Received on Thursday, 6 November 2008 12:39:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:41:08 UTC