Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an xslt that transforms any xml but places it all in one line. I am trying to create a DTD at the top of the file however I keep getting a message from the xslt processor in regards to the first line.

"The markup in the document preceding the root element must be well-formed."
Below is my DTD I am trying to use.

<!ENTITY newLine "">

<!ENTITY" <xsl:text xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:space="preserve"> &newLine; ">

I have seen sample xlst files using ENTITY declarations not sure why this is a problem.

What I have tried:

Changing the entity declaration.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900