Solved

'Trim' function in XSLT

Posted on 2007-03-28
2
6,737 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
tag a picture in Word 2013? 6 41
character entities and entity references in XML 17 98
Path of Workbook 3 44
PHP and Soap 3 27
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now