- From: Florent Georges <fgeorges@fgeorges.org>
- Date: Mon, 7 May 2012 16:18:06 +0200
- To: vojtech.toman@emc.com
- Cc: xproc-dev@w3.org
On 7 May 2012 16:05, ? wrote:
> the 'test' XPath expression is evaluated using the step XPath context
Damn, I forgot about this one... Thanks!
> A solution is to do something like this:
> <p:split-sequence>
> <p:with-option name="test" select="concat(' name(/*) eq '",$elem,"')"/>
> </p:split-sequence>
I such cases, I always use replace() like the following, in order to
ensure well-formed XPath expressions:
<p:with-option name="test" select="
concat(' name(/*) eq '", replace($elem, '''', ''''''), "')"/>
But that makes pretty unreadable expressions...
Regards,
--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
Received on Monday, 7 May 2012 14:19:00 UTC