Skip to content

Commit

Permalink
Update multiLingualCharacterStrings.xsl
Browse files Browse the repository at this point in the history
update multi lingual transform 19139-19115-3 as per Add support to codelist value having multiple occurences #194 request
  • Loading branch information
ejbleys committed Nov 6, 2024
1 parent 1a19afc commit 9cc757b
Showing 1 changed file with 42 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
<xsl:param name="codeListValue"/>
<!-- The correct codeList Location goes here -->
<xsl:variable name="codeListLocation" select="'codeListLocation'"/>
<!--
begin: replace
<xsl:if test="string-length($codeListValue) > 0">
<xsl:element name="{$elementName}">
<xsl:element name="{$codeListName}">
Expand All @@ -76,19 +78,53 @@
<xsl:value-of select="substring-after($codeListName,':')"/>
</xsl:attribute>
<xsl:attribute name="codeListValue">
<!-- the anyValidURI value is used for testing with paths -->
<!--<xsl:value-of select="'anyValidURI'"/>-->
<!-- commented out for testing -->
<xsl:value-of select="$codeListValue"/>
-->
<!-- the anyValidURI value is used for testing with paths -->
<!--<xsl:value-of select="'anyValidURI'"/>-->
<!-- commented out for testing -->
<!-- <xsl:value-of select="$codeListValue"/>
</xsl:attribute>
<xsl:value-of select="$codeListValue"/>
</xsl:element>
</xsl:element>
<!--<xsl:if test="@*">
-->
<!--<xsl:if test="@*">
<xsl:element name="{$elementName}">
<xsl:apply-templates select="@*"/>
</xsl:element>
</xsl:if>-->
</xsl:if>
<!--
</xsl:if>
end: replace
-->
<!--
begin: replace with -->
<xsl:for-each select="$codeListValue">
<xsl:if test="string-length(.) > 0">
<xsl:element name="{$elementName}">
<xsl:element name="{$codeListName}">
<xsl:attribute name="codeList">
<xsl:value-of select="$codeListLocation"/>
<xsl:value-of select="'#'"/>
<xsl:value-of select="substring-after($codeListName,':')"/>
</xsl:attribute>
<xsl:attribute name="codeListValue">
<!-- the anyValidURI value is used for testing with paths -->
<!--<xsl:value-of select="'anyValidURI'"/>-->
<!-- commented out for testing -->
<xsl:value-of select="."/>
</xsl:attribute>
<xsl:value-of select="."/>
</xsl:element>
</xsl:element>
<!--<xsl:if test="@*">
<xsl:element name="{$elementName}">
<xsl:apply-templates select="@*"/>
</xsl:element>
</xsl:if>-->
</xsl:if>
</xsl:for-each>
<!--
end: replace with -->
</xsl:template>
</xsl:stylesheet>

0 comments on commit 9cc757b

Please sign in to comment.