source: MDService2/branches/MDService_simple3/src/xsl/params.xsl @ 1555

Last change on this file since 1555 was 1555, checked in by gaba, 13 years ago
File size: 3.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3       
4       
5       
6<!--    <xsl:param name="title" select="'Default Title'" />  -->
7        <xsl:param name="format"  select="'htmltable'"/> <!-- table|list -->
8        <xsl:param name="display_values_limit" select="10" />
9        <xsl:param name="max_depth" select="0" />
10       
11        <xsl:param name="base_dir" select="'/MDService2'" />
12        <xsl:param name="base_url" select="'http://localhost:8080/MDService2/'" />
13       
14        <xsl:param name="docs_baseuri" select="concat($base_dir, '/docs/htmlpage/welcome')" />
15       
16        <!-- momentary used in dcif2view.xsl to select appropriate language section
17        should be universal language-selector eventually -->
18        <xsl:param name="lang" select="'en'" />
19        <xsl:param name="default_lang" select="'en'" />
20       
21       
22        <xsl:param name="workspaceprofile_uri" select="'http://localhost:8080/MDService2/workspaceprofile/xml/server'" />
23       
24        <!-- <xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?maxdepth=8&amp;q='" /> -->
25        <xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?q='" />
26        <xsl:param name="datcats_terms_uri" select="'http://localhost:8080/MDService2/datcats/terms/?q='" />
27        <xsl:param name="terms_setup_uri" select="'http://localhost:8080/MDService2/datcats/xml/?q='" />
28        <xsl:param name="terms_flat_uri" select="'http://localhost:8080/MDService2/terms/flat/?q=all'" />
29       
30                       
31        <xsl:param name="repository_name" select="''" />
32        <xsl:param name="q" select="''" />
33        <xsl:param name="startRecord">1</xsl:param>
34        <xsl:param name="maximumRecords">10</xsl:param>
35
36       
37        <!--  for resolving components by suffixing with @ComponentId -->
38        <!-- <xsl:param name="components_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/'" /> -->
39        <!--  redirecting the resolution via MDService, to be able to make use of the cache
40                the absolute-URL is not nice, however I wasn't able to tell XSL how to resolve a relative url
41        -->     
42        <xsl:param name="cmdprofiles_uri" select="'http://localhost:8080/MDService2/compprofile/xml/'" />
43        <xsl:param name="components_uri" select="'http://localhost:8080/MDService2/comp/xml/'" />               
44        <xsl:param name="components_id_prefix" select="'clarin.eu:cr1:'" />
45        <xsl:param name="components_viewer_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/?item='" />
46       
47        <xsl:param name="autocolumns_limit" select="6" />
48        <xsl:param name="resourceref_limit" select="20" />
49
50<!--    <xsl:param name="recordset_prefix" select="concat($base_dir, '/record/htmldetail/')" /> -->
51        <xsl:param name="default_prefix" select="concat($base_dir, '/', replace($format, '2','/'), '/')" />
52       
53        <xsl:param name="detail_comp_prefix"  select="'comp/htmldetail/'"/> 
54        <xsl:param name="detail_profile_prefix"  select="'compprofile/htmldetail/'"/> 
55        <xsl:param name="detail_complist_prefix"  select="if(contains(name(/*),'profile')) then $detail_profile_prefix else $detail_comp_prefix"/>
56       
57        <xsl:param name="detail_model_prefix"  select="'?q='"/>
58        <!--  <xsl:param name="detail_uri_prefix"  select="'?q='"/> -->
59                               
60        <!--  for rewriting links to DatCats (redirecting via MDService) -->                   
61        <xsl:param name="isocat_base_uri" select="'http://www.isocat.org/datcat/'" />   
62        <xsl:param name="isocat_uri_match" select="'http://www.isocat.org/datcat/DC-'" />               
63        <xsl:param name="isocat_uri_replace" select="'isocat/htmldiv/'" />
64       
65       
66        <xsl:param name="cache_cols_" >id date duration repository collection lang query squery startRecord maximumRecords maxDepth</xsl:param>   
67        <xsl:param name="cache_cols" select="tokenize($cache_cols_,'\s+')"  />
68       
69        <xsl:param name="name_element" select="('title', 'name', 'resourcename', 'md-title')"  />
70       
71        <xsl:param name="user" select="''"  />
72               
73       
74       
75</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.