W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2010

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

From: Alex Muir <alex.g.muir@gmail.com>
Date: Fri, 30 Jul 2010 14:01:07 +0000
Message-ID: <AANLkTikntNPpppxxpVn=vMuWpBxsJiNLiGj0b=-PFyh_@mail.gmail.com>
To: Romain Deltour <rdeltour@gmail.com>
Cc: XProc Dev <xproc-dev@w3.org>
Thanks Much, this worked

* select="'&quot;([^&quot;]+)&quot;'"

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 30 July 2010 14:01:37 GMT