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

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

From: Romain Deltour <rdeltour@gmail.com>
Date: Fri, 30 Jul 2010 15:18:04 +0200
Message-Id: <56A21FB4-B584-41B1-A245-29FED14CFE2C@gmail.com>
To: XProc Dev <xproc-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 30 July 2010 13:18:41 GMT