This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: String Manipulation
- From: Gustaf Liljegren <gustafl at algonet dot se>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sun, 23 Jun 2002 04:09:02 +0200
- Subject: Re: [xsl] String Manipulation
- Reply-to: xsl-list at lists dot mulberrytech dot com
Joel Konkle-Parker wrote:
>specifically, I need to take either take out that space and have
>AboutUs, or just use the first word, About. It also needs to be set
>up so that if category_name is just one word, it will be preserved.
There's some string manipulating functions in XPath (section 4.2). Try the
substring-before() function. Or if you neeed to remove all spaces, try
translate().
Gustaf
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list