-
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.
fix: arrays are not correctly processed as arrays when merging ZGW za…
…ak and rol resources if a valueOverride is configured for that resource
- Loading branch information
1 parent
73c14a4
commit 42c329d
Showing
1 changed file
with
17 additions
and
26 deletions.
There are no files selected for viewing
43 changes: 17 additions & 26 deletions
43
src/main/configurations/Translate/Common/xsl/LookupProcessAsArrayKeys.xslt
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 |
---|---|---|
@@ -1,28 +1,19 @@ | ||
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" /> | ||
<xsl:strip-space elements="*" /> | ||
|
||
<xsl:param name="ValueOverrideKeyRoot" select="''" as="xs:string" /> | ||
|
||
<xsl:template match="/"> | ||
<xsl:choose> | ||
<xsl:when test="$ValueOverrideKeyRoot = 'zgw.zaken-api.zaken.zaak'"> | ||
ZgwZaak.productenOfDiensten, | ||
ZgwZaak.zaakgeometrie.coordinates, | ||
ZgwZaak.relevanteAndereZaken, | ||
ZgwZaak.kenmerken, | ||
ZgwZaak.deelzaken, | ||
ZgwZaak.eigenschappen, | ||
ZgwZaak.rollen, | ||
ZgwZaak.zaakinformatieobjecten, | ||
ZgwZaak.zaakobjecten | ||
</xsl:when> | ||
<xsl:when test="$ValueOverrideKeyRoot = 'zgw.zaken-api.rollen.rol'"> | ||
zgwRol.statussen | ||
zgwRol.betrokkeneIdentificatie.handelsnaam | ||
</xsl:when> | ||
<xsl:otherwise /> | ||
</xsl:choose> | ||
</xsl:template> | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" /> | ||
<xsl:strip-space elements="*" /> | ||
|
||
<xsl:param name="ValueOverrideKeyRoot" select="''" as="xs:string" /> | ||
|
||
<xsl:template match="/"> | ||
<xsl:choose> | ||
<xsl:when test="$ValueOverrideKeyRoot = 'zgw.zaken-api.zaken.ZgwZaak'"> | ||
<xsl:value-of select="'ZgwZaak.productenOfDiensten,ZgwZaak.zaakgeometrie.coordinates,ZgwZaak.relevanteAndereZaken,ZgwZaak.kenmerken,ZgwZaak.deelzaken,ZgwZaak.eigenschappen,ZgwZaak.rollen,ZgwZaak.zaakinformatieobjecten,ZgwZaak.zaakobjecten'" /> | ||
</xsl:when> | ||
<xsl:when test="$ValueOverrideKeyRoot = 'zgw.zaken-api.rollen.zgwRol'"> | ||
<xsl:value-of select="'zgwRol.statussen,zgwRol.betrokkeneIdentificatie.handelsnaam'" /> | ||
</xsl:when> | ||
<xsl:otherwise /> | ||
</xsl:choose> | ||
</xsl:template> | ||
</xsl:stylesheet> |