This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How can I filter stoppwords
- To: "'XSL-List at mulberrytech dot com'" <XSL-List at mulberrytech dot com>
- Subject: How can I filter stoppwords
- From: "Sellmer-Brüls, Barbara" <B dot Sellmer-Bruels at klopotek dot de>
- Date: Mon, 28 Aug 2000 11:46:18 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi,
I need to filter stopp words from book titles.
Example:
<xmlfile>
<book>
<title>The Ants</title>
<id>1234</id>
</book>
<book>
<title>Lifestyle</title>
<id>1235</id>
</book>
</xmlfile>
I tried to do it with <xsl:value-of select="substring-after(title,'The')"/>
I was successfull as regards to "The Ants", but in all cases where there
exists no stopp word, the substring function returns an empty string.
Does anybody know another way to filter stopp words?
How do you XSL-create a sort criterion?
How can I tell the what-so-ever-function that there is not only one stopp
word, but a list of such words to be stripped from the beginning (!!!) of
titles.
Thanks a lot.
Barbara
---
Barbara Sellmer-Bruels
Klopotek & Partner GmbH - Berlin
E-Commerce
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list