|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to call extension function from xpath multiple
> pattern = pattern.replaceAll("_asterix_", "\\\\w*");
> pattern = pattern.replaceAll("_qstnmark_", "\\\\w");
>
> return java.util.regex.Pattern.matches(pattern,
> elemName);
You are generating a regular expression that will contain "\\w". This will
match a string containing a "\" followed by a "w". But you are using it to
match element names, which never contain a "\".
Michael Kay
http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








