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

Thanks Much, this worked

* select="'"([^"]+)"'"

*
On Fri, Jul 30, 2010 at 1:18 PM, Romain Deltour <rdeltour@gmail.com> wrote:

>
> 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
>>
>>
>
>


-- 
Alex

An informal recording with one mic under a tree leads to some pretty sweet
acoustic sounds.
https://sites.google.com/site/greigconteh/albums/diabarte-and-sons

Received on Friday, 30 July 2010 14:01:36 UTC