source: SMC/trunk/SMC/src/xsl/smc_init.xsl @ 3440

Last change on this file since 3440 was 3440, checked in by vronk, 11 years ago

introduce switch to load-profiles template

File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<xsl:stylesheet
3  version="2.0"
4  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5  xmlns:xs="http://www.w3.org/2001/XMLSchema"
6  xmlns:my="myFunctions"
7  xmlns:dcif="http://www.isocat.org/ns/dcif"
8  xmlns:dcterms="http://purl.org/dc/terms/"
9  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
10  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"   
11  xmlns:owl="http://www.w3.org/2002/07/owl#"
12  xmlns:dcr="http://www.isocat.org/ns/dcr.rdf#"
13  xmlns:skos="http://www.w3.org/2004/02/skos/core#"
14  xmlns:dcam="http://purl.org/dc/dcam/"
15  xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
16  exclude-result-prefixes="my xd"
17 >
18 
19 <xd:doc scope="stylesheet">
20  <xd:p><xd:b>Created on:</xd:b> Sep 4, 2012</xd:p>
21  <xd:p><xd:b>Author:</xd:b> m</xd:p>
22  <xd:desc>
23   <xd:p>starting script for SemanticMapping components.</xd:p>
24   <xd:p>generate lists for Terms (CMDI-Elements, CMDI-components, Datcats)
25    based on the Components-list (provided by CompReg).</xd:p>
26   <xd:p>strategy:  regard CMD_Component, CMd_Element, ConceptLink</xd:p>   
27  </xd:desc>
28  <!-- <xd:param name="isocat_file">
29   <xd:p>String to be analyzed</xd:p>
30   </xd:param>
31   <xd:return>
32   <xd:p>A substring starting from the beginning of <xd:i>string</xd:i> to the last
33   occurrence of <xd:i>searched</xd:i>. If no occurrence is found an empty string will be
34   returned.</xd:p>
35   </xd:return>-->
36 </xd:doc>
37<xsl:include href="smc_commons.xsl"/>
38       
39 <xd:doc>
40  <xd:desc>
41   <xd:p></xd:p>
42  </xd:desc>
43 </xd:doc>
44<xsl:output method="xml" indent="yes" exclude-result-prefixes="#all" name="xml"/>
45
46
47
48 <xd:doc>
49  <xd:desc>
50   <xd:p></xd:p>
51  </xd:desc>
52 </xd:doc>
53<xsl:template match="/" >
54<xsl:message>cache dir: <xsl:value-of select="$cache_dir"></xsl:value-of></xsl:message>
55 <xsl:message>document-uri: <xsl:value-of select="document-uri(/)"></xsl:value-of></xsl:message>
56 <xsl:message>base-uri: <xsl:value-of select="base-uri()"></xsl:value-of></xsl:message>
57 <xsl:message>resolved-cache: <xsl:value-of select="resolve-uri($cache_dir,$base-uri)"></xsl:value-of></xsl:message>
58<!--  <xsl:copy-of select="my:getData($data_key,$id, $cache)" exclude-result-prefixes="my"></xsl:copy-of>-->
59
60<xsl:choose>
61 <xsl:when test="$data_key = 'load-profiles'">
62  <xsl:call-template name="load-profiles"></xsl:call-template>
63 </xsl:when>
64 <xsl:otherwise> 
65  <xsl:call-template name="getData">
66  </xsl:call-template>
67 </xsl:otherwise>
68</xsl:choose> 
69 
70</xsl:template>                 
71         
72
73</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.