Skip to Content
avatar image
Former Member

Generate !DOCTYPE in outbound http

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 18, 2005 at 02:36 PM

    Ok,

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

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

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 18, 2005 at 02:47 PM

    Check this weblock - it may help you

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

    Add comment
    10|10000 characters needed characters exceeded