[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Anyway to avoid a syntax error when matching with a re

Subject: Anyway to avoid a syntax error when matching with a regex containing both '&quot for example ['"](.*?)["']
From: Alex Muir <alex.g.muir@xxxxxxxxx>
Date: Thu, 8 Oct 2009 11:45:18 +0000
 Anyway to avoid a syntax error when matching with a re
Hi,

Is there any way to avoid a syntax error with a regex containing  both
&apos;&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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.