[xsl] XSL Output the DocType declaration for DTD on to a new line after XML declaration <?xml version="1.0" encoding="UTF-8"?>

Subject: [xsl] XSL Output the DocType declaration for DTD on to a new line after XML declaration <?xml version="1.0" encoding="UTF-8"?>
From: "Alex S as.signup@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 1 Nov 2017 13:04:10 -0000
S<https://stackoverflow.com/questions/3387127/set-html5-doctype-with-xslt>o I
am leveraging this article..


https://stackoverflow.com/questions/42047263/add-a-doctype-declaration-on-xsl
-ouptut


XSL:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output
    method="xml"
    version="1.0"
    encoding="UTF-8"
    indent="yes"
    doctype-public="-//Apple//DTD PLIST 1.0//EN"
    doctype-system="http://www.apple.com/DTDs/PropertyList-1.0.dtd";
    />
...

 XSL code..

..


To output this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


But what I am getting is this (on same line):

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD
PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


I know for an XML processor thats just not important, but given that I am
going to pop this into an iPhone, I'd like for it be clean & just like the
original.


Is there something ought to clean up or remove from above XSL?

PS: Using XMLSpy


Thoughts/ suggestions?

As always thanks to the best veterans.. WP, MK, DN and so on..


- A

Current Thread