-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/configurations/Translate/Common/xsl/AddResultaat.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0"> | ||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/> | ||
<xsl:param name="code" select="'TechnicalError'" as="xs:string" /> | ||
<xsl:param name="reason" select="'Undefined error'" as="xs:string" /> | ||
<xsl:param name="cause" as="node()?" /> | ||
<xsl:param name="details" select="''" as="xs:string" /> | ||
<xsl:param name="detailsXml" as="node()?" /> | ||
|
||
<xsl:template match="/"> | ||
<error> | ||
<cause><xsl:copy-of select="$cause" /></cause> | ||
<code><xsl:value-of select="$code" /></code> | ||
<reason><xsl:value-of select="$reason" /></reason> | ||
<details><xsl:value-of select="$details" /></details> | ||
<detailsXml><xsl:copy-of select="$detailsXml"/></detailsXml> | ||
</error> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/configurations/Translate/geefZaakdetails_Lv01/xsl/AddResultaat.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:ZKN="http://www.egem.nl/StUF/sector/zkn/0310"> | ||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" /> | ||
<xsl:param name="Resultaat" /> | ||
|
||
<xsl:template match="@* | node()"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@* | node()" /> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="ZKN:startdatum"> | ||
<ZKN:resultaat> | ||
<ZKN:omschrijving> | ||
<xsl:value-of select="$Resultaat/root/toelichting" /> | ||
</ZKN:omschrijving> | ||
</ZKN:resultaat> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@* | node()" /> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |