Re: How to pass "([^"]+)" as a parameter in p:xslt

Wouldn't the following work ?

<p:with-param  name="regex" select="'([^&quot;]+)'"/>

Romain.

Le 30 juil. 10 à 14:18, Alex Muir a écrit :

> Hi,
>
> I'm trying to pass the regex "([^"]+)" as a parameter with p:xslt to  
> match on "stuff" in double quotes but having trouble getting the  
> correct escaping.
>
> THIS:
> <p:with-param  name="regex" select='"([^"]+)"'/>
>
> GIVES:
> SEVERE: file:/C:/XSLT/Project%20Files%20Form%2010-K/SRC/text/10K- 
> RegexBased/processExecutionTesting/executions/createi4EnrichIns
> xpl:970:54:err:XD0023:XPath syntax error at char 5 in {"([^"]+}:
>     Unexpected token "]" beyond end of expression
>
> THIS
> <p:with-param  name="factRegex" select="&quot;([^&quot;]+)&quot;"/>
>
> GIVES:
> SEVERE: file:/C:/XSLT/Project%20Files%20Form%2010-K/SRC/text/10K- 
> RegexBased/processExecutionTesting/executions/createi4EnrichIns
> xpl:970:54:err:XD0023:XPath syntax error at char 5 in {"([^"]+}:
>
>
> How does one pass "([^"]+)" as a parameter in p:xslt?
>
>
> Is there an equivalent to the following in xproc?
>     <xsl:variable name="regex">
>       <xsl:text>"([^"]+)"</xsl:text>
>     </xsl:variable>
>
>
> Executing with Calabash
>
> Thanks
> Alex Muir

Received on Friday, 30 July 2010 12:30:40 UTC