termToRdf.xsl 1.39 KB
Newer Older
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:ont="nf29ont"
    xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"
    xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
    xmlns:lx="scpf.org:lexicon"
Antoine's avatar
Antoine committed
9
    exclude-result-prefixes="xs sp sc lx"
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    version="2.0">
    
    <xsl:output method="xml" indent="yes" />
    
    <xsl:template  match="/">            
                    <rdf:Description>
                        <xsl:attribute name="about">
                            <xsl:value-of select="sc:item/lx:term/lx:termM/sp:name"></xsl:value-of>
                        </xsl:attribute>
                        <ont:def>
                            <xsl:value-of select="sc:item/lx:term/sp:def/lx:definition/sp:desc/lx:defTxt/sc:para"></xsl:value-of>
                        </ont:def>
                        <ont:source>
                            <xsl:value-of select="sc:item/lx:term/sp:def/lx:definition/sp:source/@sc:refUri"/>
                        </ont:source>
                        <ont:tag>
                            <xsl:value-of select="sc:item/lx:term/sp:index/lx:index/sp:tag/@sc:refUri"></xsl:value-of>
                        </ont:tag>
                    </rdf:Description>
    </xsl:template>
    
   
</xsl:stylesheet>