|
67 | 67 | <xsl:param name="codeListValue"/> |
68 | 68 | <!-- The correct codeList Location goes here --> |
69 | 69 | <xsl:variable name="codeListLocation" select="'codeListLocation'"/> |
| 70 | + <!-- |
| 71 | + begin: replace |
70 | 72 | <xsl:if test="string-length($codeListValue) > 0"> |
71 | 73 | <xsl:element name="{$elementName}"> |
72 | 74 | <xsl:element name="{$codeListName}"> |
|
76 | 78 | <xsl:value-of select="substring-after($codeListName,':')"/> |
77 | 79 | </xsl:attribute> |
78 | 80 | <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"/> |
83 | 86 | </xsl:attribute> |
84 | 87 | <xsl:value-of select="$codeListValue"/> |
85 | 88 | </xsl:element> |
86 | 89 | </xsl:element> |
87 | | - <!--<xsl:if test="@*"> |
| 90 | +--> |
| 91 | + <!--<xsl:if test="@*"> |
88 | 92 | <xsl:element name="{$elementName}"> |
89 | 93 | <xsl:apply-templates select="@*"/> |
90 | 94 | </xsl:element> |
91 | 95 | </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 --> |
93 | 129 | </xsl:template> |
94 | 130 | </xsl:stylesheet> |
0 commit comments