XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Venkat RaghupatSubject: leading and trailing white spaces
Author: Venkat Raghupat
Date: 18 Dec 2008 11:25 AM
Hi,
I am trying to convert data from one xml document into another. Is there any way, I can trim the leading and trailing white spaces from the inner text of the elements of the first xml document and load it into the second document?

Actually the first xml document itself is converted from flat files using built-in converters of Stylus.

Thanks
venkat

Posttop
Tony LavinioSubject: leading and trailing white spaces
Author: Tony Lavinio
Date: 19 Dec 2008 09:56 AM
If you are using Custom XML Converters, there is a property on
String elements that will trim leading space and trailing space.

Otherwise, if you are using XQuery or XSLT to process the text,
you can use the normalize-space() method.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.