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

Le 30 juil. 10 à 15:12, <Toman_Vojtech@emc.com>  
<Toman_Vojtech@emc.com> a écrit :

>> I'm getting the same error with the that as well.
>
> Hm. What if you reverse the order of the outer ' and " characters?  
> Like
> this:
>
> <p:with-param name="regex" select="'([^&quot;]+)'"/>

which is what I suggested btw ;)

>
> In this case, the resulting XPath expression that will be evaluated  
> will
> be: '([^"]+)'


right. If you want the outer quotes to be part of the regex, that  
would be:
<p:with-param name="regex" select="'&quot;([^&quot;]+)&quot;'"/>

BR,
Romain.

>
>
> Regards,
> Vojtech
>
> --
> Vojtech Toman
> Consultant Software Engineer
> EMC | Information Intelligence Group
> vojtech.toman@emc.com
> http://developer.emc.com/xmltech
>

Received on Friday, 30 July 2010 13:18:41 UTC