This content has been marked as final.
Show 2 replies
-
1. Re: Is there a way to modify the schema-mapped XML that is generated by the submit action prior to submission?
radzmar Nov 10, 2014 12:26 PM (in response to DC Dowd)Hi,
you can use XSLT to transform the outgoing data.
I never did this for adding a DTD but Google found some solutions for the term "xslt add dtd" so it should be possible.
Adding a DOCTYPE declaration on XSL output - Scriptorium Publishing
-
2. Re: Is there a way to modify the schema-mapped XML that is generated by the submit action prior to submission?
DC Dowd Nov 11, 2014 10:47 AM (in response to radzmar)Thanks for pointing me at those. Worked like a charm. My stylesheet ended up looking like this (in case anyone is curious later on):
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">
<!DOCTYPE name SYSTEM "http://location/DTD/name.dtd"[]>
</xsl:text>
<xsl:copy-of select="root node"/>
</xsl:template>
</xsl:stylesheet>

