54 lines
2.7 KiB
XML
54 lines
2.7 KiB
XML
<?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="facilitor">
|
|
<facilitor>
|
|
<xsl:for-each select="meldingen">
|
|
<xsl:for-each select="melding">
|
|
<xsl:choose>
|
|
<xsl:when test="@type='response'">
|
|
<xsl:copy-of select="."/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:element name="melding">
|
|
<xsl:attribute name="key">
|
|
<xsl:value-of select="@key"/></xsl:attribute>
|
|
<xsl:attribute name="type">insert</xsl:attribute>
|
|
<datum><xsl:value-of select="concat(substring(datum,7,4), '-', substring(datum,4,2), '-', substring(datum,1,2), 'T', substring(datum,12,5))"/></datum>
|
|
<melder>
|
|
<xsl:value-of select="melder"/>
|
|
</melder>
|
|
<locatiecode>
|
|
<xsl:value-of select="substring-after(substring-before(locatie, ' '), 'PR')"/>
|
|
</locatiecode>
|
|
<stdmelding>501</stdmelding>
|
|
<omschrijving>
|
|
Melder: <xsl:value-of select="melder"/>
|
|
Telefoonnummer: <xsl:value-of select="telefoonnummer"/>
|
|
Emailadres: <xsl:value-of select="emaildadres"/>
|
|
Kwis: <xsl:value-of select="kwis"/>
|
|
Vakgroep: <xsl:value-of select="vakgroep"/>
|
|
Melding: <xsl:value-of select="stdmelding1"/>
|
|
Melding2: <xsl:value-of select="stdmelding2"/>
|
|
Onderwerp: <xsl:value-of select="onderwerp"/>
|
|
Omschrijving: <xsl:value-of select="omschrijving"/>
|
|
Locatie: <xsl:value-of select="locatie"/>
|
|
Ruimte: <xsl:value-of select="ruimte"/>
|
|
Prioriteit: <xsl:value-of select="prioriteit"/>
|
|
SLA datum: <xsl:value-of select="sla_datum"/>
|
|
Inventaris: <xsl:value-of select="inventaris"/>
|
|
</omschrijving>
|
|
</xsl:element>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
</facilitor>
|
|
</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. --> |