Subject:REGEX in XSL Author:edel rooster Date:28 Jan 2005 10:38 AM
Hi
I'm using the Apache XSLT processor Xalan to transform XML documents - unfortunately
I am restricted to this processor for various reasons but the main one is
that I am working with very large XML documents and it's seems to be the only processor
to be able to cope with huge documents.
Unfortunately Xalan implements Xpath 1.0 - one of my tasks involves flushing out
some unwanted data - I thought regular expressions could solve my problem until I realised
that only XPath 2.0 supports regexs.
I'm wondering if there is another way around this in Xpath 1.0??
Here I want to check if the $term contains (\w,\s) - i.e. a character, followed by a comma and a space.
If it doesn't then I want to output the $term
<variant value="{$term}"/>
Here I want to check if the $term contains (\w,\s) - i.e. a character, followed by a comma and a space.
If it doesn't then I want to output the $term
<variant value="{$term}"/>