Reputation: 412
How can <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
be copied when applying an XSLT transformation?
This is an DTD schema declaration, am I right?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="utils_documentation_home">
<title>Documentation</title>
<body>
</body>
</topic>
I tried
<xsl:output method="xml" doctype-public="-//OASIS//DTD DITA Topic//EN" doctype-system="topic.dtd"/>
XSLT 3.0/4.0
Upvotes: 1
Views: 66
Reputation: 412
I don't know why it did not work at the beginning, but currently this instruction makes the job:
<xsl:output doctype-public="-//OASIS//DTD DITA Topic//EN" doctype-system="topic.dtd" indent="yes" method="xml"/>
Though there are some formatting changes, but I think it is not relevant.
Upvotes: 1