1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
| <xsl:apply-templates select="//EDI_DC40"/>
<xsl:template match="//EDI_DC40" >
<DocControl>
<DocumentNumber><xsl:value-of select="DOCNUM"/></DocumentNumber>
<Status><xsl:value-of select="normalize-space(STATUS)"/></Status>
<Direction><xsl:value-of select="DIRECT"/></Direction>
<BasicType><xsl:value-of select="IDOCTYP"/></BasicType>
<MessageType><xsl:value-of select="MESTYP"/></MessageType>
<MessageCode><xsl:value-of select="MESCOD"/></MessageCode>
<MessageFunction><xsl:value-of select="MESFCT"/></MessageFunction>
<SenderPort><xsl:value-of select="SNDPOR"/></SenderPort>
<SenderPartnerType><xsl:value-of select="SNDPRT"/></SenderPartnerType>
<SenderPartnerFunction><xsl:value-of select="SNDPFC"/></SenderPartnerFunction>
<SenderPartnerNumber><xsl:value-of select="SNDPRN"/></SenderPartnerNumber>
<ReceiverPort><xsl:value-of select="RCVPOR"/></ReceiverPort>
<ReceiverPartnerType><xsl:value-of select="RCVPRT"/></ReceiverPartnerType>
<ReceiverPartnerFunction><xsl:value-of select="RCVPFC"/></ReceiverPartnerFunction>
<ReceiverPartnerNumber><xsl:value-of select="RCVPRN"/></ReceiverPartnerNumber>
<CreatedDate><xsl:value-of select="CREDAT"/></CreatedDate>
<CreatedTime><xsl:value-of select="CRETIM"/></CreatedTime>
</DocControl>
</xsl:template>
<xsl:apply-templates select="//ConfirmationControl"/>
<xsl:template match="ConfirmationControl" >
<ConfirmationControl>
<DOCNUM><xsl:value-of select="DocumentNumber"/></DOCNUM>
<STATUS><xsl:value-of select="Status"/></STATUS>
<DIRECT><xsl:value-of select="Direction"/></DIRECT>
<IDOCTYP><xsl:value-of select="BasicType"/></IDOCTYP>
<MESTYP><xsl:value-of select="MessageType"/></MESTYP>
<MESCOD><xsl:value-of select="MessageCode"/></MESCOD>
<MESFCT><xsl:value-of select="MessageFunction"/></MESFCT>
<SNDPOR><xsl:value-of select="SenderPort"/></SNDPOR>
<SNDPRT><xsl:value-of select="SenderPartnerType"/></SNDPRT>
<SNDPFC><xsl:value-of select="SenderPartnerFunction"/></SNDPFC>
<SNDPRN><xsl:value-of select="SenderPartnerNumber"/></SNDPRN>
<RCVPOR><xsl:value-of select="ReceiverPort"/></RCVPOR>
<RCVPRT><xsl:value-of select="ReceiverPartnerType"/></RCVPRT>
<RCVPFC><xsl:value-of select="ReceiverPartnerFunction"/></RCVPFC>
<RCVPRN><xsl:value-of select="ReceiverPartnerNumber"/></RCVPRN>
<CREDAT><xsl:value-of select="CreatedDate"/></CREDAT>
<CRETIM><xsl:value-of select="CreatedTime"/></CRETIM>
</ConfirmationControl>
</xsl:template>
|