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

Re: Comments in XPath / XSLT regular expressions?

Subject: Re: Comments in XPath / XSLT regular expressions?
From: Abel Braaksma Online <abel.online@xxxxxxxxx>
Date: Wed, 26 Jul 2006 11:16:04 +0200
xsl regex flags
Hi Frans,

You are right, it's there, I didn't notice this regex flag before.

But it does not allow for comments in the construct, it allows only for extra whitespace. And I need comments, otherwise the extra whitespace helps only a bit.

Cheers,
Abel

PS: don't CC me, please, I am a subscriber, like everybody else on this list. Now I receive the messages twice and I accidentally answered to you instead of the list ... ;)


Frans Englich wrote:


On Wednesday 26 July 2006 08:45, Abel Braaksma Online wrote:


Dear List,

The regular expression syntax used in XSLT and XPath is largely based on
Perl's regular expression syntax. Perl added a very useful construct to
their regular expression dialect: the /x modifier. It gives "whitespace
freedom" and allows for comments inside regular expressions. It was a
great enhancement at the time, especially for moderate to difficult
regexes.


As I see it, XPath 2.0 has that flag too. See XQuery 1.0 and XPath 2.0 Functions and Operators, section 7.6.1.1 Flags:

http://www.w3.org/TR/xpath-functions/#regex-syntax


Cheers,


Frans

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.