Changeset 5322
- Timestamp:
- 06/03/14 12:37:51 (10 years ago)
- Location:
- CMDI-Interoperability/CMD2RDF/trunk/xsl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDF.xsl
r5310 r5322 50 50 51 51 <xsl:template match="cmd:MdCreator"> 52 <rdf:Description rdf:about="{concat('#',generate-id( /cmd:CMD/cmd:Components/*))}">52 <rdf:Description rdf:about="{concat('#',generate-id((/cmd:CMD/cmd:Components/*)[1]))}"> 53 53 <dc:creator> 54 54 <xsl:value-of select="."/> … … 58 58 59 59 <xsl:template match="cmd:MdCreationDate"> 60 <rdf:Description rdf:about="{concat('#',generate-id( /cmd:CMD/cmd:Components/*))}">60 <rdf:Description rdf:about="{concat('#',generate-id((/cmd:CMD/cmd:Components/*)[1]))}"> 61 61 <dc:created> 62 62 <xsl:value-of select="."/> … … 66 66 67 67 <xsl:template match="cmd:MdSelfLink"> 68 <rdf:Description rdf:about="{concat('#',generate-id( /cmd:CMD/cmd:Components/*))}">68 <rdf:Description rdf:about="{concat('#',generate-id((/cmd:CMD/cmd:Components/*)[1]))}"> 69 69 <dc:identifier> 70 70 <xsl:value-of select="."/> … … 139 139 </xsl:choose> 140 140 </xsl:variable> 141 < if test="not(startsWith($id,'clarin.eu:'))">141 <xsl:if test="not(starts-with($id,'clarin.eu:'))"> 142 142 <xsl:text>ERR: the CMDI record doesn't refer to a profile in the CR!</xsl:text> 143 </ if>143 </xsl:if> 144 144 <!-- load the profile --> 145 145 <xsl:variable name="profile" select="cmd:profile($id)"/> -
CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDFcache.xsl
r5310 r5322 50 50 </xsl:choose> 51 51 </xsl:variable> 52 < if test="not(startsWith($id,'clarin.eu:'))">52 <xsl:if test="not(starts-with($id,'clarin.eu:'))"> 53 53 <xsl:text>ERR: the CMDI record doesn't refer to a profile in the CR!</xsl:text> 54 </ if>54 </xsl:if> 55 55 <!-- prefetch the profile into the cache on the fly. 56 56 the profile (if freshly fetched) will however only be available in subsequent calls
Note: See TracChangeset
for help on using the changeset viewer.