cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT/JAVA Mapping for cXML DOCTYPE

Former Member
0 Kudos

Hello -

Was anyone successful in adding the header

<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.014/cXML.dtd">

after the

<?xml version="1.0" encoding="UTF-8"?> when converting

using either XSL or JAVA?

If there's way let me know what kind of mapping was used and how?

Thanks,

Tirumal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you ever resolve how to get the DOCTYPE into the cXML message??

If so please please share the solution. We're starting to map xcbl to cXML and are running into the same problems.

Thanks

Rick

udo_martens
Active Contributor
0 Kudos

Hi Tirumal,

you can solve that with xsl:output

one example:


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:output method="xml" doctype-system="http://xml.cXML.org/schemas/cXML/1.2.014/cXML.dtd"/>
	<xsl:template match="/">
		<xsl:copy-of select="*"/>
	</xsl:template>
</xsl:stylesheet>

Regards,

Udo

Former Member
0 Kudos

Udo -

Thanks for the reply.

Should i have my original cXML file within the XSL? If so, how does the mapping retain?

Thanks,

Tirumal

Former Member
0 Kudos

Udo -

When i applied the XSL that you sent it generated the <!DOCTYPE....but at the end it added []...so it looks like this

<!DOCTYPE cXML SYSTEM 'http://xml.cXML.org/schemas/cXML/1.2.014/cXML.dtd' []>

Is it possible to remove those extra characters []?

Thanks,

Tirumal

udo_martens
Active Contributor
0 Kudos

Hi Tirumal,

that does not appear in my XMLSpy. Obvisiosly a bug of XI. I can remember there was a thread about that theme, but cant find it because assumedly the search of this forum is (hopefully temporary) broken. So my tip: just search manually (a lot work, the thread is may be between 1 and 6 weeks old) or what is easier, open a new thread about that theme. The involved people should remember the solution.

Regards,

Udo

udo_martens
Active Contributor
0 Kudos

and one more tip:

may be the bug does not appear if you execute that mapping in ABAP stack (may be...)