Skip to content

Commit 9cc757b

Browse files
committed
Update multiLingualCharacterStrings.xsl
update multi lingual transform 19139-19115-3 as per Add support to codelist value having multiple occurences #194 request
1 parent 1a19afc commit 9cc757b

File tree

1 file changed

+42
-6
lines changed

1 file changed

+42
-6
lines changed

19115/resources/transforms/ISO19139/utility/multiLingualCharacterStrings.xsl

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
<xsl:param name="codeListValue"/>
6868
<!-- The correct codeList Location goes here -->
6969
<xsl:variable name="codeListLocation" select="'codeListLocation'"/>
70+
<!--
71+
begin: replace
7072
<xsl:if test="string-length($codeListValue) > 0">
7173
<xsl:element name="{$elementName}">
7274
<xsl:element name="{$codeListName}">
@@ -76,19 +78,53 @@
7678
<xsl:value-of select="substring-after($codeListName,':')"/>
7779
</xsl:attribute>
7880
<xsl:attribute name="codeListValue">
79-
<!-- the anyValidURI value is used for testing with paths -->
80-
<!--<xsl:value-of select="'anyValidURI'"/>-->
81-
<!-- commented out for testing -->
82-
<xsl:value-of select="$codeListValue"/>
81+
-->
82+
<!-- the anyValidURI value is used for testing with paths -->
83+
<!--<xsl:value-of select="'anyValidURI'"/>-->
84+
<!-- commented out for testing -->
85+
<!-- <xsl:value-of select="$codeListValue"/>
8386
</xsl:attribute>
8487
<xsl:value-of select="$codeListValue"/>
8588
</xsl:element>
8689
</xsl:element>
87-
<!--<xsl:if test="@*">
90+
-->
91+
<!--<xsl:if test="@*">
8892
<xsl:element name="{$elementName}">
8993
<xsl:apply-templates select="@*"/>
9094
</xsl:element>
9195
</xsl:if>-->
92-
</xsl:if>
96+
<!--
97+
</xsl:if>
98+
end: replace
99+
-->
100+
<!--
101+
begin: replace with -->
102+
<xsl:for-each select="$codeListValue">
103+
<xsl:if test="string-length(.) > 0">
104+
<xsl:element name="{$elementName}">
105+
<xsl:element name="{$codeListName}">
106+
<xsl:attribute name="codeList">
107+
<xsl:value-of select="$codeListLocation"/>
108+
<xsl:value-of select="'#'"/>
109+
<xsl:value-of select="substring-after($codeListName,':')"/>
110+
</xsl:attribute>
111+
<xsl:attribute name="codeListValue">
112+
<!-- the anyValidURI value is used for testing with paths -->
113+
<!--<xsl:value-of select="'anyValidURI'"/>-->
114+
<!-- commented out for testing -->
115+
<xsl:value-of select="."/>
116+
</xsl:attribute>
117+
<xsl:value-of select="."/>
118+
</xsl:element>
119+
</xsl:element>
120+
<!--<xsl:if test="@*">
121+
<xsl:element name="{$elementName}">
122+
<xsl:apply-templates select="@*"/>
123+
</xsl:element>
124+
</xsl:if>-->
125+
</xsl:if>
126+
</xsl:for-each>
127+
<!--
128+
end: replace with -->
93129
</xsl:template>
94130
</xsl:stylesheet>

0 commit comments

Comments
 (0)