Changeset 2060 for metadata/trunk


Ignore:
Timestamp:
08/01/12 14:44:30 (12 years ago)
Author:
larlam
Message:

imdi2clarin.xsl: Fixed fatal error when session contains multiple Description elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xslt/imdi2clarin.xsl

    r2046 r2060  
    9898                <xsl:if test="exists(child::Description)">
    9999                    <descriptions>
    100                        
    101100                        <xsl:variable name="reflist">
    102101                            <xsl:for-each select="Description">
    103                                
    104102                                <xsl:if test="not(normalize-space(@ArchiveHandle)='') or not(normalize-space(@Link)='')">
    105103                                    <xsl:value-of select="generate-id()"/>
    106104                                    <xsl:text> </xsl:text>
    107105                                </xsl:if>
    108                                
    109                                
    110106                            </xsl:for-each>
    111107                        </xsl:variable>
    112108                       
    113109                        <xsl:attribute name="ref" select="normalize-space($reflist)"></xsl:attribute>
    114                        
    115                        
    116110                       
    117111                        <xsl:for-each select="Description">
     
    216210            <xsl:if test="exists(child::Description)">
    217211                <descriptions>
    218                     <xsl:for-each select="Description">
    219                         <xsl:if test="@ArchiveHandle">
    220                             <xsl:attribute name="ref" select="generate-id()"/>
    221                         </xsl:if>
     212                    <xsl:variable name="reflist">
     213                        <xsl:for-each select="Description">
     214                            <xsl:if test="not(normalize-space(@ArchiveHandle)='') or not(normalize-space(@Link)='')">
     215                                <xsl:value-of select="generate-id()"/>
     216                                <xsl:text> </xsl:text>
     217                            </xsl:if>
     218                        </xsl:for-each>
     219                    </xsl:variable>
     220                   
     221                    <xsl:if test="not(normalize-space($reflist)='')">
     222                        <xsl:attribute name="ref" select="normalize-space($reflist)"></xsl:attribute>
     223                    </xsl:if>
     224
     225                    <xsl:for-each select="Description">
    222226                        <Description>
    223227                            <xsl:attribute name="LanguageId" select="@LanguageId"/>
Note: See TracChangeset for help on using the changeset viewer.