Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - FW: [xsl] How to call extension function from xpath multiple times? [Thread Next] RE: [xsl] How to call extension function from xpath multiple times?To: Date: 1/4/2005 12:44:00 PM > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
