Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.