source: ComponentRegistry/branches/ComponentRegistry-1.14/ComponentRegistry/src/main/resources/ccr2dcif.xsl @ 6061

Last change on this file since 6061 was 6061, checked in by Twan Goosen, 9 years ago

updated ccr2dcif (same as trunk/1.15/2.0 but allow the old response as well)

File size: 1.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3        xmlns:xs="http://www.w3.org/2001/XMLSchema"
4        exclude-result-prefixes="xs rdf openskos skos"
5        version="2.0"
6        xmlns:dcif="http://www.isocat.org/ns/dcif"
7        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8        xmlns:openskos="http://openskos.org/xmlns#"
9        xmlns:skos="http://www.w3.org/2004/02/skos/core#"
10>
11       
12        <xsl:output method="xml" encoding="UTF-8"/>
13       
14        <xsl:template match="rdf:RDF">
15                <dcif:dataCategorySelection dcif-version="1.3" name="search">
16                        <dcif:globalInformation>CLARIN Concept Registry, Meertens Institute, Amsterdam, The Netherlands</dcif:globalInformation>
17                        <xsl:apply-templates/>
18                </dcif:dataCategorySelection>
19        </xsl:template>
20       
21        <xsl:template match="skos:Concept">
22                <dcif:dataCategory
23                        definition="{(skos:definition[@xml:lang='en'])[1]}"
24                        identifier="{(skos:notation)[1]}"
25                        name="{(skos:prefLabel[@xml:lang='en'])[1]}"
26                        owner="CLARIN"
27                        pid="{@rdf:about|@rdf:resource}"
28                        type="concept"
29                        version="1:0">
30                </dcif:dataCategory>
31        </xsl:template>
32       
33</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.