XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have an XML file with some fairly large textual paragraphs typed in by a user - so it has formatting in it like indentation via tabs and spaces.
For example :-
"This procedure has two parts :-
1. Start
2. End"
Comes out as a single concatenated string post transformation :-
"This procedure has two parts :- 1. Start 2. End"
I have developed the xml to the point where if I open it up and view the source I can see the paragraphs have all their formatting intact.
I'm sure my document tree structure is fine. But when transforming via the XSLT stylesheet the formatting is lost.
The data originates from an access database Memo field and the XML document is generated via MSXML and VBA.
Following a suggestion from another forum I put the data in a CDATA section - XSLT completed ignored this. I have "preserve space" and "output" elements in the xslt stylesheet.
So can anyone help ?
I am getting quite frustrated with this as it is my first foray into XML and XSLT and it was going along so well. Deadline is now approaching fast and it appears I've reached some sort of impasse.