Changeset 5236


Ignore:
Timestamp:
05/19/14 16:06:23 (10 years ago)
Author:
xnrn@gmx.net
Message:

handling the error, when one record references two profiles(!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDF.xsl

    r5234 r5236  
    133133    <xsl:template match="/cmd:CMD/cmd:Components">
    134134        <!-- get the profile id -->
    135         <xsl:variable name="id" select="/cmd:CMD/cmd:Header/cmd:MdProfile"/>
     135                <!-- and ignore if there are multiple MdProfile and just take the first!!
     136                        although probably this more a case for the schema validation!  -->
     137        <xsl:variable name="id" select="(/cmd:CMD/cmd:Header/cmd:MdProfile)[1]"/>
    136138        <!-- load the profile -->
    137139        <xsl:variable name="profile" select="cmd:profile($id)"/>
Note: See TracChangeset for help on using the changeset viewer.