Solved

'Trim' function in XSLT

Posted on 2007-03-28
2
6,745 Views
Last Modified: 2008-01-09
I am trying to 'trim' the value of an element to 256 characters, something like:

<xsl:value-of select="trim(., '256')"/>

I just can't remember what the function is called...

Thanks.
0
Comment
Question by:kmartin7
2 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
ID: 18811321
substring

<xsl:value-of select="substring(normalize-space(.), 1, 256)"/>
0
 
LVL 11

Expert Comment

by:Vivek Thangaswamy
ID: 18814245
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c# code 19 72
Transform XML to Excel using XSL 1 33
Configure a Bean in an XML file 4 42
XSL FO - remove empty space and automatically size columns 6 11
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question