- From: <Toman_Vojtech@emc.com>
- Date: Thu, 6 Nov 2008 07:37:53 -0500
- 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