cancel
Showing results for 
Search instead for 
Did you mean: 

Generate !DOCTYPE in outbound http

Former Member
0 Kudos

Hello,

What is the best way to generate a !DOCTYPE tag in an outbound message?

Is there a doc or thread that describes how to do this?

I've read about XSL and java mapping for this but was wondering if there maybe was another way. Isn't it possible to use the HTTP adapter header fields for this maybe?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ok,

Wrestling now with XSL mapping. I have an imported archive with the following content:

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- Add the Doctype declaration -->

<xsl:output method="xml" indent="no"

doctype-system="http://integratex.quality.techdata.de:8080/ix/dtd/ixOrder.dtd"/>

<!-- Identity Transform - copy the source XML to the output without any changes -->

<xsl:template match="node() | @*">

<xsl:copy>

<xsl:apply-templates select="node() | @*"/>

</xsl:copy>

</xsl:template>

</xsl:stylesheet>

Activation goes well.

When I try to use this imported archive in an interface mapping i get the error:

DOCTYPE_Stylesheet has no program

DOCTYPE_Stylesheet is the arbitrary name of my imported archive.

What am I missing?

Thanks

Tom

Former Member
0 Kudos

Hi

did u save it as DOCTYPE_Stylesheet.xslt or DOCTYPE_Stylesheet.xsl

It should be the latter.

cheers

Sameer

Former Member
0 Kudos

Hi Sameer,

Thanks it was indeed a naming issue. It works now.

Tom

Answers (1)

Answers (1)

Former Member
0 Kudos

Check this weblock - it may help you

/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping