This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: String Manipulation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]