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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + XML to 837I EDI -- multiple NM... (3)
-> + WYSIWYG in SSv7 (2)
-> - Write into < head /> tags us... (1)
-> + Maximum recursion depth exceed... (2)
-> - Code coverage testing (1)
-> - Passing JavaScript with multip... (1)
-> - preserving white space in XML ... (8)
-> ->preserving white space in...
-> ->preserving white space in...
-> ->preserving white space in...
-> ->preserving white space in...
-> ->preserving white space in...
-> ->preserving white space in...
-> ->preserving white space in...
-> + XXX maps to XXX system (3)
-> + Help with extracting bookmarks... (2)
-> + Stylus Studio crashes when sou... (2)
-> + WSDL not Displaying properly (5)
-> + How to use fonts other than ba... (5)
-> + Saxon XSLT2 and FOP for XSL:FO... (3)
-> + Converting from XML to EDIFACT (5)
-> + Looping more than one time thr... (2)
-> - Need help with using XQuery in... (1)
-> + Looping - Taking the comma out (3)
-> + xslt mapper is only processing... (4)
-> - Newbie: using Saxon 9.1 with F... (1)
-> + Editing ![CDATA[]]> in the Gr... (2)
-- Previous [781-800] [801-820] [821-840] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 28 Apr 2009 08:31 AM
I created a conversion file to create an XML file from a non-delimited flat file, and need to preserve all whitespace outside and inside the value. I already went to Tools – Options – Editor General and checked "Preserve trailing/leading whitespace", but that does not save any whitespace. Is there a special tag or setting I can use to do this? If need be, I can delimit the file.

Thanks,
Michael

Postnext
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 13 May 2009 09:04 AM
By default, the elements have several properties set that will reduce
white space. Get rid of anything that trims white space, and then also
set 'normalize spaces' to false for the fields you care about.

Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 13 May 2009 10:29 AM
Thanks for replying Tony. I see the normalized spaces property has to be changed per field, but it does not affect the spaces before or after a field. Do you know what other properties trim white space? I do not see any others that affect white space.

Thanks,
Michael

>By default, the elements have
>several properties set that
>will reduce
>white space. Get rid of
>anything that trims white
>space, and then also
>set 'normalize spaces' to
>false for the fields you care
>about.

Postnext
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 14 May 2009 09:06 AM
"Toss characters" within the region might be your problem.
See http://www.stylusstudio.com/docs/v2009R2/d_flatfileconversion58.html
for the definition.

Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 14 May 2009 11:14 AM
Looks like "Toss Characters" is not the problem. I am using a fixed-width region, so it does not apply.

Thanks,
Michael

Postnext
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 14 May 2009 02:05 PM
Is there any chance you could share a portion of the input file
and the .conv file you've built so far?

You can send a copy to stylus-field-report (at) progress.com, and
we'll take a look for you.

Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 14 May 2009 03:00 PM
I can do that, but I will need to scrub some of the customer data first. I will try to do this first thing tomorrow.

Thanks,
Michael

Posttop
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 15 May 2009 10:30 AM
Solved off line. :)

   
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.