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

RE: How to split an RegEx into several lines for read

Subject: RE: How to split an RegEx into several lines for readability?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 29 Apr 2007 22:05:22 +0100
RE:  How to split an RegEx into several lines for  read
> also, since you are using 
> xsl:analyze-string, the regex is an attribute value template 
> so you can define the regexp parts separately and drop them 
> in using {}.

A word of warning here, regular expressions may perform a lot better if they
are known at stylesheet compile time. (It might be that this example works
as a constant subexpression, but one would need to check.)

Michael Kay
http://www.saxonica.com/

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-2007 All Rights Reserved.