Skip to Content
author's profile photo Former Member
Former Member

XSLT mapping

Hi,

I am trying to do XSLT mapping.But i am not getting any response at the output while checking my interface mapping.

Below is the XSLT. kindly let me know if i need to modify this.

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

http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">

<ns0:fileout_MT xmlns:ns0="http://file2file">

<fileout_MT>

<name><xsl:value-of select ="filein_MT/fname"/></name>

</fileout_MT>

</ns0:fileout_MT>

</xsl:template>

</xsl:stylesheet>

Regards,

Divya

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2005 at 10:32 AM

    Hi,

    Something wrong with the namespace of the input file. For Output you are using namespace, why are not using for input?

    so try this,

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

    http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

    <xsl:template match="/">

    <ns0:fileout_MT xmlns:ns0="http://file2file">

    <name><xsl:value-of select ="ns0:filein_MT/fname"/></name>

    </ns0:fileout_MT>

    </xsl:template>

    </xsl:stylesheet>

    or this (without namespace)

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

    http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

    <xsl:template match="/">

    <fileout_MT>

    <name><xsl:value-of select ="filein_MT/fname"/></name>

    </fileout_MT>

    </xsl:template>

    </xsl:stylesheet>

    Thanks,

    Sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2005 at 09:49 AM

    This code may help you..,

    <?xml version="1.0" encoding="ISO-8859-1" ?>

    - http://schemas.xmlsoap.org/wsdl/" targetNamespace="">

    - <wsdl:types>

    - http://www.w3.org/2001/XMLSchema">

    - <xsd:element name="ZISU_xxxxxxx">

    - <xsd:complexType>

    - <xsd:sequence>

    <xsd:element name="IDOC" type="ZISU_xxxxxxxxxxx" />

    </xsd:sequence>

    </xsd:complexType>

    </xsd:element>

    - <xsd:complexType name="ZISU_xxxxxxxxxxxxxxxxxxxxx">

    - <xsd:annotation>

    <xsd:documentation>xx Gas - (RT_N44_METER_INSPECTION_DATE)</xsd:documentation>

    </xsd:annotation>

    - <xsd:sequence>

    - <xsd:element name="TRANSACTION_TYPE" minOccurs="0">

    - <xsd:annotation>

    <xsd:documentation>3-Byte field</xsd:documentation>

    </xsd:annotation>

    - <xsd:simpleType>

    - <xsd:restriction base="xsd:string">

    <xsd:maxLength value="3" />

    </xsd:restriction>

    </xsd:simpleType>

    Regards,

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2005 at 09:41 AM

    Divya,

    Have you previously test this xslt mapping outside XI? Normally, that's the path you follow; first test/debug everything outside XI, then afterwards when everything is fine tuned, import the XSLT sources to XI.

    Cheers,

    R.

    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.