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)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] 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)
Ferdinand WehrmannSubject: CData Question
Author: Ferdinand Wehrmann
Date: 02 Jan 2008 04:35 AM

I have an xml with a node and within the node there is an CDATA section.The CDATA Section in the xml file looks like the following.

To: The Sales Manager

Subject: Overdue Order/s

According to our records the order/s detailed on the attached list has/have not yet been delivered.

As you are no doubt aware, time is of the essence regarding deliveries to XXXXXXX .
On-time delivery is one of the most important criteria used when we assess Supplier performance.

Late deliveries constitute a breach of contract, which could have detrimental effects on our operations and on our business dealings with your company.

It is of utmost importance that you advise the revised delivery date/s, the reason/s for the delay and how you intend preventing any reoccurrence.

Kindly note that each late delivery is recorded against your Company's performance and this information is used by the Procurement Department when sourcing new requirements.

Further occurrences of this nature may lead to your exclusion from our ordering process.

Please note that should you have already delivered; please provide us with the applicable Proof of Delivery.


The Manager

I need to display the above mentioned CDATA section exactly as in the original xml file.I'm using the Saxon Processor and the output is being displayed in a pdf document.The problem is that the transformation translates it too one wrapped string. It doesn't preserve the carriage return's, line breaks etc.


Please advice.

Thank You.

(Deleted User) Subject: CData Question
Author: (Deleted User)
Date: 03 Jan 2008 06:39 AM
Hi Ferdinand,
try adding a white-space-collapse="false" attribute to the XSL-FO block that gets the content of the CDATA section.

Hope this helps,

Ferdinand WehrmannSubject: CData Question
Author: Ferdinand Wehrmann
Date: 03 Jan 2008 06:52 AM
Thanks Alberto

It works like a dream.


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!  

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.