source: CMDI-Interoperability/CMD2RDF/trunk/xsl/CMD2RDFcache.xsl @ 5322

Last change on this file since 5322 was 5310, checked in by Menzo Windhouwer, 10 years ago

M xsl/CMDRecord2RDF.xsl
M xsl/CMD2RDF.xsl
M xsl/CMDRecord2RDFcache.xsl
M xsl/CMD2RDFcache.xsl

  • be a bit smarter in finding and cleaning the profile ID
File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE rdf:RDF [
3    <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
4    <!ENTITY rdfs 'http://www.w3.org/TR/WD-rdf-schema#'>
5    <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'>
6]>
7<xsl:stylesheet
8    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
9    xmlns:dcr="http://www.isocat.org/ns/dcr.rdf#"
10    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
11    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
12    xmlns:cmd="http://www.clarin.eu/cmd/"
13>
14   
15    <xsl:include href="../../../SMC/src/src/xsl/smc_commons.xsl"/>
16   
17    <!-- load a profile from the registry -->
18    <xsl:function name="cmd:profile">
19        <xsl:param name="id"/>
20<!--        <xsl:sequence select="doc(cmd:ppath($id,'xml'))"/>-->
21        <xsl:message>getting from cache via function</xsl:message>
22        <xsl:call-template name="getData">
23            <xsl:with-param name="id" select="$id" />
24            <xsl:with-param name="key" select="'profiles'" />
25            <xsl:with-param name="cache" select="'use'" />
26        </xsl:call-template>
27    </xsl:function>
28
29
30    <xsl:template name="cmd:cache-profile">
31        <xsl:param name="id"/>
32        <!--        <xsl:sequence select="doc(cmd:ppath($id,'xml'))"/>-->
33        <xsl:message>getting from cache via function</xsl:message>
34        <xsl:call-template name="getData">
35            <xsl:with-param name="id" select="$id" />
36            <xsl:with-param name="key" select="'profiles'" />
37            <xsl:with-param name="cache" select="'refresh'" />
38        </xsl:call-template>
39    </xsl:template>
40   
41   
42
43</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.