added another block
This commit is contained in:
@@ -185,6 +185,19 @@ Migrated by Mustangproject XSLT
|
|||||||
|
|
||||||
</rsm:SupplyChainTradeTransaction>
|
</rsm:SupplyChainTradeTransaction>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template
|
||||||
|
match="//*[local-name() = 'BuyerOrderReferencedDocument' or local-name() = 'DeliveryNoteReferencedDocument' or local-name() = 'AdditionalReferencedDocument' or local-name() = 'ContractReferencedDocument']">
|
||||||
|
<xsl:element name="{name()}">
|
||||||
|
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="./*[local-name() = 'ID']" />
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="./*[local-name() = 'TypeCode']" />
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="./*[not(local-name() = 'ID' or local-name() = 'TypeCode')]" />
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- innerhalb IncludedSupplyChainTradeLineItem zuerst AssociatedDocumentLineDocument
|
<!-- innerhalb IncludedSupplyChainTradeLineItem zuerst AssociatedDocumentLineDocument
|
||||||
dann SpecifiedTradeProduct -->
|
dann SpecifiedTradeProduct -->
|
||||||
@@ -203,31 +216,37 @@ Migrated by Mustangproject XSLT
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template
|
<xsl:template
|
||||||
match="//*[local-name() = 'BuyerOrderReferencedDocument']">
|
match="//*[local-name() = 'SpecifiedLineTradeSettlement']">
|
||||||
<ram:BuyerOrderReferencedDocument><!-- no rename of the top level element, rename of ID below will be performed later-->
|
<ram:SpecifiedLineTradeSettlement>
|
||||||
<xsl:apply-templates
|
|
||||||
select="./*[local-name() = 'ID']" />
|
|
||||||
<!-- now copy any other children that we haven't explicitly reordered;
|
|
||||||
again, possibly this is not what you want -->
|
|
||||||
<xsl:apply-templates
|
|
||||||
select="./*[not(local-name() = 'ID')]" />
|
|
||||||
|
|
||||||
</ram:BuyerOrderReferencedDocument>
|
<xsl:apply-templates
|
||||||
|
select="./*[not(local-name() = 'SpecifiedTradeSettlementHeaderMonetarySummation' or local-name() = 'SpecifiedTradeSettlementLineMonetarySummation' or local-name() = 'SpecifiedTradeAccountingAccount')]" />
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="./*[local-name() = 'SpecifiedTradeSettlementHeaderMonetarySummation']" />
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="./*[local-name() = 'SpecifiedTradeSettlementLineMonetarySummation']" />
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="./*[local-name() = 'SpecifiedTradeAccountingAccount']" />
|
||||||
|
|
||||||
|
</ram:SpecifiedLineTradeSettlement>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template
|
<xsl:template
|
||||||
match="//*[local-name() = 'DeliveryNoteReferencedDocument']">
|
match="//*[local-name() = 'ApplicableHeaderTradeSettlement' or local-name() = 'SpecifiedLineTradeSettlement']">
|
||||||
<ram:DeliveryNoteReferencedDocument><!-- no rename of the top level element, rename of ID below will be performed later-->
|
<xsl:element name="{name()}">
|
||||||
|
|
||||||
<xsl:apply-templates
|
<xsl:apply-templates
|
||||||
select="./*[local-name() = 'ID']" />
|
select="./*[not(local-name() = 'SpecifiedTradeSettlementHeaderMonetarySummation' or local-name() = 'SpecifiedTradeSettlementMonetarySummation' or local-name() = 'SpecifiedTradeAccountingAccount')]" />
|
||||||
<!-- now copy any other children that we haven't explicitly reordered;
|
<!-- xsl:apply-templates
|
||||||
again, possibly this is not what you want -->
|
select="./*[local-name() = 'SpecifiedTradeSettlementHeaderMonetarySummation']" /-->
|
||||||
<xsl:apply-templates
|
<xsl:apply-templates
|
||||||
select="./*[not(local-name() = 'ID')]" />
|
select="./*[local-name() = 'SpecifiedTradeSettlementMonetarySummation']" />
|
||||||
|
<xsl:apply-templates
|
||||||
</ram:DeliveryNoteReferencedDocument>
|
select="./*[local-name() = 'SpecifiedTradeAccountingAccount']" />
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!-- unterhalb von SupplyChainTradeTransaction muss zuerst die IncludedSupplyChainTradeLineItem
|
<!-- unterhalb von SupplyChainTradeTransaction muss zuerst die IncludedSupplyChainTradeLineItem
|
||||||
kommen -->
|
kommen -->
|
||||||
<!-- rest -->
|
<!-- rest -->
|
||||||
|
|||||||
Reference in New Issue
Block a user