xsl-list
[Top] [All Lists]

[xsl] Anyway to avoid a syntax error when matching with a regex containing both '&quot for example ['"](.*?)["']

2009-10-08 08:12:46
Hi,

Is there any way to avoid a syntax error with a regex containing  both
'&quot for example ['"](.*?)["'] in the following select.

<xsl:value-of select="matches(., '[&apos;&quot;](.*?)[&quot;&apos;]')"/>


Working with Oxygen 10.3, F [Saxon-B 9.1.0.7] I'll get an XPath syntax
error at char 14 on line 44 in {matches(., '['"](.*?)["']'}:
    expected ")", found "<string-literal>"



I'm sure this is an easy question but I wasn't able to find the right
Google search to answer it.
Thanks
-- 

Alex
https://sites.google.com/a/utg.edu.gm/alex

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>