- Timestamp:
- 06/03/11 14:07:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/trunk/toolkit/xslt/olac2cmdi.xsl
r1365 r1390 14 14 15 15 <xsl:key name="iso-lookup" match="lang" use="sil"/> 16 <xsl:key name="provider-lookup" match="prov" use="identifier"/> 16 17 17 18 <!-- … … 21 22 <xsl:param name="iso_xml_path"/> 22 23 <xsl:variable name="lang-top" select="document(concat($iso_xml_path,'sil_to_iso6393.xml'))/languages"/> 24 25 <xsl:param name="providers_path"/> 26 <xsl:variable name="id-top" select="document(concat($providers_path,'id_to_name.xml'))/providers"/> 27 23 28 24 29 <xsl:template match="/"> … … 29 34 <MdCreationDate> 30 35 <xsl:variable name="date"> 31 <xsl:value-of select="/ /defns:datestamp"/>36 <xsl:value-of select="/defns:OAI-PMH/defns:GetRecord[1]/defns:record[1]/defns:header[1]/defns:datestamp[1]"/> 32 37 </xsl:variable> 33 38 <xsl:choose> … … 41 46 </MdCreationDate> 42 47 <MdSelfLink> 43 <xsl:value-of select="/ /defns:identifier"/>48 <xsl:value-of select="/defns:OAI-PMH/defns:GetRecord[1]/defns:record[1]/defns:header[1]/defns:identifier[1]"/> 44 49 </MdSelfLink> 45 50 <MdProfile>clarin.eu:cr1:p_1288172614026</MdProfile> 51 <xsl:variable name="oai_id"> 52 <xsl:value-of select="tokenize(/defns:OAI-PMH/defns:GetRecord[1]/defns:record[1]/defns:header[1]/defns:identifier[1], ':')[2]"/> 53 </xsl:variable> 54 <MdCollectionDisplayName> 55 <xsl:apply-templates select="$id-top"> 56 <xsl:with-param name="curr-label" select="$oai_id"/> 57 </xsl:apply-templates> 58 </MdCollectionDisplayName> 46 59 </Header> 47 60 <Resources> … … 191 204 <xsl:value-of select="key('iso-lookup', $silcode)/iso"/> 192 205 </xsl:template> 206 207 <xsl:template match="providers"> 208 <xsl:param name="curr-label"/> 209 <xsl:variable name="id"> 210 <xsl:value-of select="$curr-label"/> 211 </xsl:variable> 212 <xsl:value-of select="key('provider-lookup', $id)/name"/> 213 </xsl:template> 214 193 215 194 216
Note: See TracChangeset
for help on using the changeset viewer.