Changeset 2555
- Timestamp:
- 02/08/13 13:59:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/branches/clarin2imdi-resourcerefs/toolkit/xslt/imdi2clarin.xsl
r2554 r2555 28 28 <xsl:variable name="SruSearchable">childes,ESF corpus,IFA corpus,MPI CGN,talkbank</xsl:variable> 29 29 30 <xsl:param name="keep-resource-refs" select=" 'true'" />30 <xsl:param name="keep-resource-refs" select="true()" /> 31 31 32 32 <xsl:template name="metatranscriptDelegate"> … … 249 249 <!-- Used to create the ref attribute on sources from the original ResourceRefs attribute (multiple refs) --> 250 250 <xsl:template match="@ResourceRefs" mode="CreateResourceRefAttribute"> 251 <xsl:variable name="resourceRefsValid"> 252 <xsl:call-template name="CheckResourceRefsValidity"> 253 <xsl:with-param name="resourceRefs" select="concat(normalize-space(string(.)),' ')"></xsl:with-param> 254 </xsl:call-template> 255 </xsl:variable> 256 <xsl:if test="$resourceRefsValid = 'true'"> 257 <xsl:attribute name="ref" select="."/> 251 <xsl:if test="$keep-resource-refs"> 252 <xsl:variable name="resourceRefsValid"> 253 <xsl:call-template name="CheckResourceRefsValidity"> 254 <xsl:with-param name="resourceRefs" select="concat(normalize-space(string(.)),' ')"></xsl:with-param> 255 </xsl:call-template> 256 </xsl:variable> 257 <xsl:if test="$resourceRefsValid = 'true'"> 258 <xsl:attribute name="ref" select="."/> 259 </xsl:if> 258 260 </xsl:if> 259 261 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.