CSUN#40729 -- Automatisering Facilitor koppelingen (bon PostNL)

svn path=/Website/branches/v2017.2/; revision=35763
This commit is contained in:
Arthur Egberink
2017-10-19 13:42:41 +00:00
parent 128fc90569
commit 9f737397ca

View File

@@ -1,40 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<xsl:output method="xml" indent="yes" encoding="utf-8" />
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="." />
<xsl:param name="mode" />
<xsl:variable name="Rev">
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)" />
</xsl:variable>
<xsl:template match="werkorder">
<facilitor>
<xsl:element name="melding">
<xsl:attribute name="key">
<xsl:value-of select="referencereq"/></xsl:attribute>
<xsl:attribute name="type">insert</xsl:attribute>
<datum><xsl:value-of select="concat(substring(senddate,7,4), '-', substring(senddate,4,2), '-', substring(senddate,1,2), 'T', substring(senddate,12,5))"/></datum>
<stdmelding>41</stdmelding>
<locatiecode>ONBEKEND</locatiecode>
<omschrijving>
Extern nummer: <xsl:value-of select="referencereq"/>
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
<xsl:param name="mode"/>
<xsl:variable name="Rev">
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:template match="werkorder">
<facilitor>
<xsl:element name="melding">
<xsl:attribute name="key">
<xsl:value-of select="referencereq"/>
</xsl:attribute>
<xsl:attribute name="type">insert</xsl:attribute>
<datum>
<xsl:value-of select="concat(substring(senddate,7,4), '-', substring(senddate,4,2), '-', substring(senddate,1,2), 'T', substring(senddate,12,5))"/>
</datum>
<stdmelding>41</stdmelding>
<locatiecode>ONBEKEND</locatiecode>
<omschrijving>Extern nummer: <xsl:value-of select="referencereq"/>
Melder: <xsl:value-of select="concat(requestorfirstname, ' ', requestorlastname)"/>
Kostenplaats: <xsl:value-of select="costcenter"/>
Telefoonnummer: <xsl:value-of select="telephonereq"/>
Emailadres: <xsl:value-of select="emaildadres"/>
Omschrijving: <xsl:value-of select="description"/>
Locatie: <xsl:value-of select="dimensioncode"/>
Ruimte: <xsl:value-of select="area"/>
</omschrijving>
</xsl:element>
</facilitor>
</xsl:template>
<xsl:template match="facilitor">
<xsl:copy-of select="."/>
</xsl:template>
Ruimte: <xsl:value-of select="area"/></omschrijving>
<kenmerk naam="Locatiecode klant">
<xsl:value-of select="substring-before(dimensioncode, ' ')"/>
</kenmerk>
</xsl:element>
</facilitor>
</xsl:template>
<xsl:template match="facilitor">
<xsl:copy-of select="."/>
</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. --><!-- 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-2009. Progress Software Corporation. All rights reserved. -->