AAGN#46028 -- Unica interface aanpassing

svn path=/Website/branches/v2017.2/; revision=35885
This commit is contained in:
Arthur Egberink
2017-11-02 13:19:46 +00:00
parent 707b3b4406
commit f7607a8949

View File

@@ -1,98 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" version="1.0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:unic="http://unica.nl/">
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
<xsl:variable name="Rev">
<!-- Revision van deze MaasStatusResponse.xsl -->
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:template name="linebreaks">
<xsl:param name="string"/><xsl:param name="delimiter"/>
<xsl:choose>
<xsl:when test="contains($string, $delimiter)">
<xsl:value-of select="substring-before($string, $delimiter)"/>
<xsl:text>&#10;</xsl:text>
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
<xsl:with-param name="delimiter" select="$delimiter"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="strip_prefix">
<xsl:param name="in"/>
<xsl:choose>
<xsl:when test="translate(substring($in,1,1), '01234567890', '')">
<xsl:call-template name="strip_prefix">
<xsl:with-param name="in" select="substring($in, 2)"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$in"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="RegistrationStatus">
<facilitor>
<xsl:for-each select="Status">
<xsl:sort select="DateTime"/>
<xsl:variable name="remarks">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="DetailedRemarks"/>
<xsl:with-param name="delimiter" select="';'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="remarks2">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="$remarks"/>
<xsl:with-param name="delimiter" select="'|'"/>
</xsl:call-template>
</xsl:variable>
<xsl:element name="opdracht">
<xsl:attribute name="key">
<xsl:call-template name="strip_prefix">
<xsl:with-param name="in" select="ExtReference"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="type">update</xsl:attribute>
<xsl:choose>
<xsl:when test="Status = 'Technisch gereed' ">
<status>ORDAFM</status>
</xsl:when>
<xsl:when test="New = '1'">
<status>ORDACP</status>
</xsl:when>
<xsl:otherwise>
<status></status>
</xsl:otherwise>
</xsl:choose>
<mut_datum>
<xsl:value-of select="DateTime"/>
</mut_datum>
<opmerking>
<xsl:value-of select="DateTime"/>:<xsl:value-of select="Status"/><xsl:text>&#10;</xsl:text>
<xsl:value-of select="$remarks2"/>
</opmerking>
<xsl:element name="kenmerk">
<xsl:attribute name="naam">Ref. Nr. Leverancier</xsl:attribute>
<xsl:attribute name="type">C</xsl:attribute>
<xsl:value-of select="RegistrationID"/>
</xsl:element>
</xsl:element>
</xsl:for-each>
</facilitor>
</xsl:template>
<!-- Root -->
<xsl:template match="/">
<xsl:apply-templates select="soap:Envelope/soap:Body"/>
</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-2009. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. -->