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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ferdinand WehrmannSubject: CData Question
Author: Ferdinand Wehrmann
Date: 02 Jan 2008 04:35 AM
Hi,

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.

<Note><![CDATA[
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.

Regards

The Manager
]]>
</Note>

I need to display the above mentioned CDATA section exactly as in the original xml file.I'm using the Saxon 8.9.0.3 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.

P.S.

Please advice.

Thank You.

Postnext
Alberto MassariSubject: CData Question
Author: Alberto Massari
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,
Alberto

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

It works like a dream.

Regards
Ferdinand

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.