32 lines
3.5 KiB
XML
32 lines
3.5 KiB
XML
<?xml version="1.0" encoding="Windows-1252"?>
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
<xsl:output method="text"/>
|
|
|
|
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
|
|
|
|
<xsl:template match="/">referenceID;dateTime;lineNumber;itemId;description;quantity;itemPrice;itemTax;deliveryDate;supplierRef;postcode;adres;catalogus;kostenplaats
|
|
<xsl:for-each select="//PurchaseOrderLine">
|
|
<xsl:variable name="bestelopdr_id"><xsl:value-of select="../../PurchaseOrderHeader/DocumentID/ID"/></xsl:variable>
|
|
<xsl:variable name="datetime"><xsl:value-of select="../../PurchaseOrderHeader/DocumentDateTime"/></xsl:variable>
|
|
<xsl:variable name="linenumber"><xsl:value-of select="LineNumber"/></xsl:variable>
|
|
<xsl:variable name="supplier_item_id"><xsl:value-of select="Product/Item/SupplierItemID/ID"/></xsl:variable>
|
|
<xsl:variable name="description"><xsl:value-of select="Product/Item/Description"/></xsl:variable>
|
|
<xsl:variable name="description_long">"<xsl:value-of select="translate(Product/Item/DescriptionLong, ' ', '@@')"/>"</xsl:variable>
|
|
<xsl:variable name="order_quantity"><xsl:value-of select="OrderQuantity"/></xsl:variable>
|
|
<xsl:variable name="item_price"><xsl:value-of select="NetPricePerUnit/UnitSalePriceAmount"/></xsl:variable>
|
|
<xsl:variable name="item_tax"><xsl:value-of select="Product/Item/BTWPercentage"/></xsl:variable>
|
|
<xsl:variable name="delivery_date"><xsl:value-of select="../../PurchaseOrderHeader/DeliverTime"/></xsl:variable>
|
|
<xsl:variable name="supplier_ref"><xsl:value-of select="OrderLineCharacteristic/CharacteristicValue"/></xsl:variable>
|
|
<xsl:variable name="aflever_postcode"><xsl:value-of select="../../PurchaseOrderHeader/EmployeeResponsibleParty/Location/Address/PostalCode"/></xsl:variable>
|
|
<xsl:variable name="aflever_adres"><xsl:value-of select="../../PurchaseOrderHeader/EmployeeResponsibleParty/Location/Address/Address"/></xsl:variable>
|
|
<xsl:variable name="catalogus"><xsl:value-of select="../../../MessageHeader/RecipientParty/CustomerID"/></xsl:variable>
|
|
<xsl:variable name="kostenplaats"><xsl:value-of select="../../PurchaseOrderHeader/CostHeadings/CostHeadingID[1]"/></xsl:variable>
|
|
<xsl:variable name="new_line" select="'
'"/>
|
|
<xsl:value-of select="$bestelopdr_id"/>;<xsl:value-of select="$datetime"/>;<xsl:value-of select="$linenumber"/>;<xsl:value-of select="$supplier_item_id"/>;<xsl:value-of select="$description"/>;<xsl:value-of select="$description_long"/>;<xsl:value-of select="$order_quantity"/>;<xsl:value-of select="$item_price"/>;<xsl:value-of select="$item_tax"/>;<xsl:value-of select="$delivery_date"/>;<xsl:value-of select="$supplier_ref"/>;<xsl:value-of select="$aflever_postcode"/>;<xsl:value-of select="$aflever_adres"/>;<xsl:value-of select="$catalogus"/>;<xsl:value-of select="$kostenplaats"/><xsl:value-of select="$new_line"/>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
<!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --> |