cancel
Showing results for 
Search instead for 
Did you mean: 

how to add fields in XSLT Structure

Former Member
0 Kudos

I am new to XSLT and trying to add fields from XML structure to  XSLT Structure for mapping in SAP PI. Could you please help on this.

XML Structure(Code)

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">

- <SOAP-ENV:Body>

<s159Response xmlns="http://www.lichtsinfotech.com/Schema/Personal/RetailParty/aaaa">

<s59Result>

<ResultCondition xmlns="http://www.lichtsinfotech.com/Schema/Infrastructure/SOAP">

  <SeverityCode>0</SeverityCode>

  </ResultCondition>

  </S59Result>

  <AdditionalDataIn>0</AdditionalDataIn>

<AddressStaticData>

  <AddressTownNm>INDIA</AddressTownNm>

  <OutPostCd>AE11</OutPostCd>

  <InPostCd>1NA</InPostCd>

  </AddressStaticData>

<AddressMatches>

  <OrganisationNm>SINGAPORE</OrganisationNm>

  <BuildingNo>45</BuildingNo>

<AddressLinePaf>

  <AddressLineTx>SHORTLAND STREET</AddressLineTx>

  </AddressLinePaf>

  <DelivPointSuffixCd>2B</DelivPointSuffixCd>

  </AddressMatches>

  </S159Response>

  </SOAP-ENV:Body>

  </SOAP-ENV:Envelope>

XSLT Code where required to update

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

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

    <xsl:output omit-xml-declaration="yes" indent="yes"/>

              <xsl:template match="*">

        <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/

xmlns="urn:hl7-org:v3">

            <soapenv:Header/>

            <soapenv:Body>

              <xsl:value-of select="*"/>.

            </soapenv:Body>

        </soapenv:Envelope>

    </xsl:template>

</xsl:stylesheet>

Please update it and post the code. Please help on this.

Regards,

Venkat.

Accepted Solutions (0)

Answers (2)

Answers (2)

Bhargavakrishna
Active Contributor
0 Kudos
ambrish_mishra
Active Contributor
0 Kudos

Hi Venkat,

IMO, update of XSLT code is not required. Run the interface after adding the fields in the structure.

It should work fine.

Ambrish