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

Re: XSLT 2.0 matches function (Saxon)

Subject: Re: [xsl] XSLT 2.0 matches function (Saxon)
From: Marcin Miłkowski <milek_pl@xxxxx>
Date: Mon, 08 Aug 2005 10:28:51 +0200
xpath matches
Michael Kay wrote:

Well, if you can't spot the error with the diagnostics in front of you, then it's unlikely other people will be able to spot it without...

I'm just a newbie to XSLT. But you're of course right.



<?xml version="1.0" encoding="UTF-8"?>[\.\?!]+[\.\?!]+[\xff61\x3002\xff0e\xff1f\xff01]+


Does this sound like evidence?



Absolutely. You said that $before contained "[\.\?!]+" and this shows that
it doesn't.

It does, but only twice. There are three elements here, so $before gets three values:


[\.\?!]+

[\.\?!]+

and

[\xff61\x3002\xff0e\xff1f\xff01]+

which is a ICU regular expression, and this seems to make Saxon complain (rightly).

There's some garbage in here, you need to find out where it came
from. \xff61 is not valid in an XPath regular expression.

Thanks for pointing this out. I thought Saxon was evaluating the first expression when it complained about the escaped sequence.


I'll need to build a Java API to use ICU regexps from the icu.jar library. But at first I wanted to check the design of the template with XPath regexps. Seems like I'd have to tweak the test data to build the first version of the template.

Thanks again,
	Marcin

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.