- Timestamp:
- 06/16/14 09:40:13 (10 years ago)
- Location:
- cats/ISOcat/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/mod-ISOcat-access-data/dbx/DCIF.xml
r3569 r5364 776 776 <xsl:copy> 777 777 <xsl:apply-templates select="@*"/> 778 <xsl:comment> 779 <xsl:text>This work by </xsl:text> 780 <xsl:value-of select="@pid"/> 781 <xsl:text> is licensed under a Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/).</xsl:text> 782 </xsl:comment> 778 783 <xsl:apply-templates select="node() except dcif:linguisticSection"/> 779 784 <!-- other languages in alfabetical order (on name or tag) --> -
cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/dcs2/html.xsl
r2686 r5364 260 260 </p> 261 261 </xsl:for-each> 262 262 263 <p align="left"> 264 <xsl:text>License: </xsl:text> 265 <xsl:text>This work by </xsl:text> 266 <a xmlns:cc="http://creativecommons.org/ns#" href="{dcif:dataCategory/@pid}" property="cc:attributionName" rel="cc:attributionURL"> 267 <xsl:value-of select="@pid"/> 268 </a> 269 <xsl:text> is licensed under a </xsl:text> 270 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a> 271 <xsl:text>.</xsl:text> 272 </p> 273 263 274 <xsl:for-each select="tokenize($view-working-languages,'\|')[.!='en']"> 264 275 <xsl:variable name="lang" select="."/> … … 311 322 312 323 </xsl:for-each> 313 324 314 325 <!-- language sections --> 315 326 <xsl:if test="exists(.//dcif:languageSection[dcif:language!='en'])"> … … 381 392 </xsl:when> 382 393 </xsl:choose> 383 394 384 395 </xsl:template> 385 396 -
cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/html/datacategory.xsl
r4948 r5364 1 1 <?xml version="1.0"?> 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:isocat="http://www.isocat.org/" 7 xmlns:dcr="http://www.isocat.org/ns/dcr" 8 xmlns:dcif="http://www.isocat.org/ns/dcif" 9 > 10 11 <xsl:output method="xml" encoding="UTF-8"/> 12 13 <xsl:param name="title" select="'default'"/> 14 <xsl:param name="props"/> 15 16 <xsl:param name="purpose"/> 17 18 <xsl:template match="text()"/> 19 20 <xsl:variable name="DCS" select="document('active:ISOcat.manage.dm.dcs')"/> 21 22 <xsl:key name="val" match="dcif:value" use="@isocat:id"/> 23 24 <xsl:function name="isocat:name"> 25 <xsl:param name="node"/> 26 <xsl:choose> 27 <xsl:when test="exists($node/@dcr:datcat) and exists($DCS//dcif:dataCategory[@pid=$node/@dcr:datcat]/@isocat:name)"> 28 <xsl:sequence select="$DCS//dcif:dataCategory[@pid=$node/@dcr:datcat]/@isocat:name"/> 29 </xsl:when> 30 <xsl:otherwise> 31 <xsl:sequence select="$node/local-name()"/> 32 </xsl:otherwise> 33 </xsl:choose> 34 </xsl:function> 35 36 <xsl:function name="isocat:title"> 37 <xsl:param name="node"/> 38 <xsl:choose> 39 <xsl:when test="exists($title) and ($title instance of node()) and (normalize-space(string($title))!='default')"> 40 <xsl:choose> 41 <xsl:when test="(normalize-space(string($title))!='') and (normalize-space(string($title))!='none')"> 42 <xsl:sequence select="normalize-space(string($title))"/> 43 </xsl:when> 44 </xsl:choose> 45 </xsl:when> 46 <xsl:when test="exists($node/self::dcif:dataCategorySelection[normalize-space(@name)!=''])"> 47 <xsl:sequence select="concat('Data Category Selection: ',normalize-space($node/self::dcif:dataCategorySelection/@name))"/> 48 </xsl:when> 49 <xsl:when test="exists($node/self::dcif:dataCategory[normalize-space(@isocat:name)!=''])"> 50 <xsl:sequence select="concat('Data Category: ',normalize-space($node/self::dcif:dataCategory/@isocat:name))"/> 51 </xsl:when> 52 <xsl:when test="exists($node/self::dcif:dataCategory[normalize-space(//dcif:identifier)!=''])"> 53 <xsl:sequence select="concat('Data Category: ',normalize-space($node/self::dcif:dataCategory//dcif:identifier))"/> 54 </xsl:when> 55 </xsl:choose> 56 </xsl:function> 57 58 <xsl:function name="isocat:level"> 59 <xsl:param name="node"/> 60 <xsl:sequence select="count($node/ancestor::*[exists(ancestor::dcif:dataCategory)])"/> 61 </xsl:function> 62 63 <xsl:function name="isocat:section"> 64 <xsl:param name="node"/> 65 <xsl:variable name="level" select="isocat:level($node)"/> 66 67 <xsl:choose> 68 <xsl:when test="$level=0"> 69 <xsl:sequence select="count($node/preceding-sibling::*[exists(child::*)]) + 1"/> 70 </xsl:when> 71 <xsl:when test="$level=1 or $level=2"> 72 <xsl:sequence select="concat(isocat:section(($node/parent::*)[last()]),'.',count($node/preceding-sibling::*[exists(child::*)]) + 1)"/> 73 </xsl:when> 74 <xsl:otherwise> 75 <xsl:sequence select="''"/> 76 </xsl:otherwise> 77 </xsl:choose> 78 </xsl:function> 79 80 <xsl:template match="isocat:*" priority="1"/> 81 82 <xsl:template match="isocat:administrationStatus" priority="10"> 83 <xsl:param name="class" select="''" tunnel="yes"/> 84 <tr class="DC-data{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 85 <td class="DC-data-label"> 86 <xsl:value-of select="isocat:name(.)"/> 87 </td> 88 <td class="DC-data-value"> 89 <div> 90 <xsl:value-of select="text()"/> 91 </div> 92 </td> 93 </tr> 94 </xsl:template> 95 96 <xsl:template name="reference"> 97 <xsl:param name="indent" select="''" tunnel="yes"/> 98 <tr class="DC-data"> 99 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 100 <xsl:attribute name="style" select="'color:gray;'"/> 101 </xsl:if> 102 <td class="DC-data-label"> 103 <xsl:value-of select="isocat:name(.)"/> 104 </td> 105 <td class="DC-data-value"> 106 <span stle="color:gray;"> 107 <xsl:value-of select="$indent"/> 108 </span> 109 <span> 110 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 111 <xsl:attribute name="style" select="'color:gray;'"/> 112 </xsl:if> 113 <xsl:text>/</xsl:text> 114 <a href="{@pid}" target="other" datcat="{@isocat:id}"> 115 <xsl:choose> 116 <xsl:when test="exists(@isocat:identifier)"> 117 <xsl:value-of select="@isocat:identifier"/> 118 </xsl:when> 119 <xsl:otherwise> 120 <xsl:value-of select="@pid"/> 121 </xsl:otherwise> 122 </xsl:choose> 123 </a> 124 <xsl:text>/</xsl:text> 125 </span> 126 <span> 127 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 128 <xsl:attribute name="style" select="'color:gray;'"/> 129 </xsl:if> 130 <xsl:if test="exists(@isocat:name) and (@isocat:name!=@isocat:identifier)"> 131 <xsl:text> (</xsl:text> 132 <xsl:value-of select="@isocat:name"/> 133 <xsl:text>)</xsl:text> 134 </xsl:if> 135 </span> 136 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 137 <div style="color:gray;"> 138 <xsl:text>Note: this data category isn't a member of the currently selected Data Category Selection or profile!</xsl:text> 139 </div> 140 </xsl:if> 141 </td> 142 </tr> 143 </xsl:template> 144 145 <xsl:template match="dcif:isA" priority="1"/> 146 147 <xsl:template match="dcif:conceptualDomain[@type='closed']" priority="1"> 148 <xsl:param name="class" select="''" tunnel="yes"/> 149 <xsl:variable name="level" select="isocat:level(.)"/> 150 <tr class="DC-header{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 151 <th colspan="2"> 152 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 153 <xsl:attribute name="style" select="'color:gray;'"/> 154 </xsl:if> 155 <xsl:choose> 156 <xsl:when test="$level < 1"> 157 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 158 <xsl:value-of select="isocat:section(.)"/> 159 <xsl:text>. </xsl:text> 160 <xsl:value-of select="isocat:name(.)"/> 161 </xsl:when> 162 <xsl:when test="$level < 2"> 163 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 164 <xsl:value-of select="isocat:section(.)"/> 165 <xsl:text> </xsl:text> 166 <xsl:value-of select="isocat:name(.)"/> 167 </xsl:when> 168 <xsl:otherwise> 169 <xsl:attribute name="class" select="'DC-header-level-x'"/> 170 <xsl:value-of select="isocat:section(.)"/> 171 <xsl:text> </xsl:text> 172 <xsl:value-of select="isocat:name(.)"/> 173 </xsl:otherwise> 174 </xsl:choose> 175 </th> 176 </tr> 177 <xsl:apply-templates select="child::*[empty(child::*)] except dcif:note"/> 178 <xsl:apply-templates select="child::*[exists(child::*)] except dcif:value"/> 179 <xsl:for-each select="dcif:value[empty(@isocat:isa) or empty(key('val',@isocat:isa,current()))]"> 180 <xsl:apply-templates select="."> 181 <xsl:with-param name="indent" select="''" tunnel="yes"/> 182 </xsl:apply-templates> 183 </xsl:for-each> 184 <xsl:if test="exists(dcif:note[normalize-space(.)!=''])"> 185 <tr class="DC-header"> 186 <th colspan="2" class="DC-header-level-x"> 187 <xsl:value-of select="isocat:section(.)"/> 188 <xsl:text>.</xsl:text> 189 <xsl:value-of select="count(child::*[exists(child::*)]) + 1"/> 190 <xsl:text> Note Section</xsl:text> 191 </th> 192 </tr> 193 <xsl:apply-templates select="dcif:note[normalize-space(.)!='']"/> 194 </xsl:if> 195 </xsl:template> 196 197 <xsl:template match="dcif:value" priority="1"> 198 <xsl:param name="indent" tunnel="yes"/> 199 <xsl:call-template name="reference"> 200 <xsl:with-param name="indent" select="$indent"/> 201 </xsl:call-template> 202 <xsl:for-each select="../dcif:value[@isocat:isa=current()/@isocat:id]"> 203 <xsl:apply-templates select="."> 204 <xsl:with-param name="indent" select="concat($indent,'· ')" tunnel="yes"/> 205 </xsl:apply-templates> 206 </xsl:for-each> 207 </xsl:template> 208 209 <xsl:template match="dcif:language" priority="1"> 210 <xsl:param name="class" select="''" tunnel="yes"/> 211 <tr class="DC-data{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 212 <td class="DC-data-label"> 213 <xsl:value-of select="isocat:name(.)"/> 214 </td> 215 <td class="DC-data-value"> 216 <xsl:choose> 217 <xsl:when test="exists(@isocat:name)"> 218 <xsl:value-of select="@isocat:name"/> 219 <xsl:text> (</xsl:text> 220 <xsl:value-of select="text()"/> 221 <xsl:text>)</xsl:text> 222 </xsl:when> 223 <xsl:otherwise> 224 <xsl:value-of select="text()"/> 225 </xsl:otherwise> 226 </xsl:choose> 227 </td> 228 </tr> 229 </xsl:template> 230 231 <xsl:template match="dcif:languageSection" priority="1"> 232 <xsl:variable name="dc" select="ancestor::dcif:dataCategory[last()]/@isocat:id"/> 233 <xsl:variable name="class" select="concat('dc-',$dc,'-langsec-',dcif:language)"/> 234 <xsl:variable name="classes" select="concat(if (dcif:language!='en') then (concat('dc-',$dc,'-langsec ')) else (''),$class)"/> 235 <tr class="DC-header"> 236 <th colspan="2" class="DC-header-level-2"> 237 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 238 <xsl:attribute name="style" select="'color:gray;'"/> 239 </xsl:if> 240 <!--<pre style="display:inline;cursor:pointer;cursor:hand;" onclick="var span = this;$('.{$class}').toggle(1000,function() {{span.innerHTML = '['+(span.innerHTML=='[+] '?'-':'+')+'] ';}});">--> 241 <pre style="display:inline;cursor:pointer;cursor:hand;" onclick="var span = this;$('.{$class}').toggle(1000);span.innerHTML = '['+(span.innerHTML=='[+] '?'-':'+')+'] ';"> <xsl:choose> 2 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:isocat="http://www.isocat.org/" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:dcif="http://www.isocat.org/ns/dcif"> 3 4 <xsl:output method="xml" encoding="UTF-8"/> 5 6 <xsl:param name="title" select="'default'"/> 7 <xsl:param name="props"/> 8 9 <xsl:param name="purpose"/> 10 11 <xsl:template match="text()"/> 12 13 <xsl:variable name="DCS" select="document('active:ISOcat.manage.dm.dcs')"/> 14 15 <xsl:key name="val" match="dcif:value" use="@isocat:id"/> 16 17 <xsl:function name="isocat:name"> 18 <xsl:param name="node"/> 19 <xsl:choose> 20 <xsl:when test="exists($node/@dcr:datcat) and exists($DCS//dcif:dataCategory[@pid=$node/@dcr:datcat]/@isocat:name)"> 21 <xsl:sequence select="$DCS//dcif:dataCategory[@pid=$node/@dcr:datcat]/@isocat:name"/> 22 </xsl:when> 23 <xsl:otherwise> 24 <xsl:sequence select="$node/local-name()"/> 25 </xsl:otherwise> 26 </xsl:choose> 27 </xsl:function> 28 29 <xsl:function name="isocat:title"> 30 <xsl:param name="node"/> 31 <xsl:choose> 32 <xsl:when test="exists($title) and ($title instance of node()) and (normalize-space(string($title))!='default')"> 33 <xsl:choose> 34 <xsl:when test="(normalize-space(string($title))!='') and (normalize-space(string($title))!='none')"> 35 <xsl:sequence select="normalize-space(string($title))"/> 36 </xsl:when> 37 </xsl:choose> 38 </xsl:when> 39 <xsl:when test="exists($node/self::dcif:dataCategorySelection[normalize-space(@name)!=''])"> 40 <xsl:sequence select="concat('Data Category Selection: ',normalize-space($node/self::dcif:dataCategorySelection/@name))"/> 41 </xsl:when> 42 <xsl:when test="exists($node/self::dcif:dataCategory[normalize-space(@isocat:name)!=''])"> 43 <xsl:sequence select="concat('Data Category: ',normalize-space($node/self::dcif:dataCategory/@isocat:name))"/> 44 </xsl:when> 45 <xsl:when test="exists($node/self::dcif:dataCategory[normalize-space(//dcif:identifier)!=''])"> 46 <xsl:sequence select="concat('Data Category: ',normalize-space($node/self::dcif:dataCategory//dcif:identifier))"/> 47 </xsl:when> 48 </xsl:choose> 49 </xsl:function> 50 51 <xsl:function name="isocat:level"> 52 <xsl:param name="node"/> 53 <xsl:sequence select="count($node/ancestor::*[exists(ancestor::dcif:dataCategory)])"/> 54 </xsl:function> 55 56 <xsl:function name="isocat:section"> 57 <xsl:param name="node"/> 58 <xsl:variable name="level" select="isocat:level($node)"/> 59 60 <xsl:choose> 61 <xsl:when test="$level=0"> 62 <xsl:sequence select="count($node/preceding-sibling::*[exists(child::*)]) + 1"/> 63 </xsl:when> 64 <xsl:when test="$level=1 or $level=2"> 65 <xsl:sequence select="concat(isocat:section(($node/parent::*)[last()]),'.',count($node/preceding-sibling::*[exists(child::*)]) + 1)"/> 66 </xsl:when> 67 <xsl:otherwise> 68 <xsl:sequence select="''"/> 69 </xsl:otherwise> 70 </xsl:choose> 71 </xsl:function> 72 73 <xsl:template match="isocat:*" priority="1"/> 74 75 <xsl:template match="isocat:administrationStatus" priority="10"> 76 <xsl:param name="class" select="''" tunnel="yes"/> 77 <tr class="DC-data{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 78 <td class="DC-data-label"> 79 <xsl:value-of select="isocat:name(.)"/> 80 </td> 81 <td class="DC-data-value"> 82 <div> 83 <xsl:value-of select="text()"/> 84 </div> 85 </td> 86 </tr> 87 </xsl:template> 88 89 <xsl:template name="reference"> 90 <xsl:param name="indent" select="''" tunnel="yes"/> 91 <tr class="DC-data"> 92 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 93 <xsl:attribute name="style" select="'color:gray;'"/> 94 </xsl:if> 95 <td class="DC-data-label"> 96 <xsl:value-of select="isocat:name(.)"/> 97 </td> 98 <td class="DC-data-value"> 99 <span stle="color:gray;"> 100 <xsl:value-of select="$indent"/> 101 </span> 102 <span> 103 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 104 <xsl:attribute name="style" select="'color:gray;'"/> 105 </xsl:if> 106 <xsl:text>/</xsl:text> 107 <a href="{@pid}" target="other" datcat="{@isocat:id}"> 108 <xsl:choose> 109 <xsl:when test="exists(@isocat:identifier)"> 110 <xsl:value-of select="@isocat:identifier"/> 111 </xsl:when> 112 <xsl:otherwise> 113 <xsl:value-of select="@pid"/> 114 </xsl:otherwise> 115 </xsl:choose> 116 </a> 117 <xsl:text>/</xsl:text> 118 </span> 119 <span> 120 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 121 <xsl:attribute name="style" select="'color:gray;'"/> 122 </xsl:if> 123 <xsl:if test="exists(@isocat:name) and (@isocat:name!=@isocat:identifier)"> 124 <xsl:text> (</xsl:text> 125 <xsl:value-of select="@isocat:name"/> 126 <xsl:text>)</xsl:text> 127 </xsl:if> 128 </span> 129 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 130 <div style="color:gray;"> 131 <xsl:text>Note: this data category isn't a member of the currently selected Data Category Selection or profile!</xsl:text> 132 </div> 133 </xsl:if> 134 </td> 135 </tr> 136 </xsl:template> 137 138 <xsl:template match="dcif:isA" priority="1"/> 139 140 <xsl:template match="dcif:conceptualDomain[@type='closed']" priority="1"> 141 <xsl:param name="class" select="''" tunnel="yes"/> 142 <xsl:variable name="level" select="isocat:level(.)"/> 143 <tr class="DC-header{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 144 <th colspan="2"> 145 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 146 <xsl:attribute name="style" select="'color:gray;'"/> 147 </xsl:if> 148 <xsl:choose> 149 <xsl:when test="$level < 1"> 150 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 151 <xsl:value-of select="isocat:section(.)"/> 152 <xsl:text>. </xsl:text> 153 <xsl:value-of select="isocat:name(.)"/> 154 </xsl:when> 155 <xsl:when test="$level < 2"> 156 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 157 <xsl:value-of select="isocat:section(.)"/> 158 <xsl:text> </xsl:text> 159 <xsl:value-of select="isocat:name(.)"/> 160 </xsl:when> 161 <xsl:otherwise> 162 <xsl:attribute name="class" select="'DC-header-level-x'"/> 163 <xsl:value-of select="isocat:section(.)"/> 164 <xsl:text> </xsl:text> 165 <xsl:value-of select="isocat:name(.)"/> 166 </xsl:otherwise> 167 </xsl:choose> 168 </th> 169 </tr> 170 <xsl:apply-templates select="child::*[empty(child::*)] except dcif:note"/> 171 <xsl:apply-templates select="child::*[exists(child::*)] except dcif:value"/> 172 <xsl:for-each select="dcif:value[empty(@isocat:isa) or empty(key('val',@isocat:isa,current()))]"> 173 <xsl:apply-templates select="."> 174 <xsl:with-param name="indent" select="''" tunnel="yes"/> 175 </xsl:apply-templates> 176 </xsl:for-each> 177 <xsl:if test="exists(dcif:note[normalize-space(.)!=''])"> 178 <tr class="DC-header"> 179 <th colspan="2" class="DC-header-level-x"> 180 <xsl:value-of select="isocat:section(.)"/> 181 <xsl:text>.</xsl:text> 182 <xsl:value-of select="count(child::*[exists(child::*)]) + 1"/> 183 <xsl:text> Note Section</xsl:text> 184 </th> 185 </tr> 186 <xsl:apply-templates select="dcif:note[normalize-space(.)!='']"/> 187 </xsl:if> 188 </xsl:template> 189 190 <xsl:template match="dcif:value" priority="1"> 191 <xsl:param name="indent" tunnel="yes"/> 192 <xsl:call-template name="reference"> 193 <xsl:with-param name="indent" select="$indent"/> 194 </xsl:call-template> 195 <xsl:for-each select="../dcif:value[@isocat:isa=current()/@isocat:id]"> 196 <xsl:apply-templates select="."> 197 <xsl:with-param name="indent" select="concat($indent,'· ')" tunnel="yes"/> 198 </xsl:apply-templates> 199 </xsl:for-each> 200 </xsl:template> 201 202 <xsl:template match="dcif:language" priority="1"> 203 <xsl:param name="class" select="''" tunnel="yes"/> 204 <tr class="DC-data{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 205 <td class="DC-data-label"> 206 <xsl:value-of select="isocat:name(.)"/> 207 </td> 208 <td class="DC-data-value"> 209 <xsl:choose> 210 <xsl:when test="exists(@isocat:name)"> 211 <xsl:value-of select="@isocat:name"/> 212 <xsl:text> (</xsl:text> 213 <xsl:value-of select="text()"/> 214 <xsl:text>)</xsl:text> 215 </xsl:when> 216 <xsl:otherwise> 217 <xsl:value-of select="text()"/> 218 </xsl:otherwise> 219 </xsl:choose> 220 </td> 221 </tr> 222 </xsl:template> 223 224 <xsl:template match="dcif:languageSection" priority="1"> 225 <xsl:variable name="dc" select="ancestor::dcif:dataCategory[last()]/@isocat:id"/> 226 <xsl:variable name="class" select="concat('dc-',$dc,'-langsec-',dcif:language)"/> 227 <xsl:variable name="classes" select="concat(if (dcif:language!='en') then (concat('dc-',$dc,'-langsec ')) else (''),$class)"/> 228 <tr class="DC-header"> 229 <th colspan="2" class="DC-header-level-2"> 230 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 231 <xsl:attribute name="style" select="'color:gray;'"/> 232 </xsl:if> 233 <!--<pre style="display:inline;cursor:pointer;cursor:hand;" onclick="var span = this;$('.{$class}').toggle(1000,function() {{span.innerHTML = '['+(span.innerHTML=='[+] '?'-':'+')+'] ';}});">--> 234 <pre style="display:inline;cursor:pointer;cursor:hand;" onclick="var span = this;$('.{$class}').toggle(1000);span.innerHTML = '['+(span.innerHTML=='[+] '?'-':'+')+'] ';"> <xsl:choose> 242 235 <xsl:when test="dcif:language='en'"> 243 236 <xsl:text>[-] </xsl:text> … … 248 241 </xsl:choose> 249 242 </pre> 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 243 <xsl:value-of select="isocat:section(.)"/> 244 <xsl:text> </xsl:text> 245 <xsl:choose> 246 <xsl:when test="exists(dcif:language/@isocat:name)"> 247 <xsl:value-of select="dcif:language/@isocat:name"/> 248 </xsl:when> 249 <xsl:otherwise> 250 <xsl:value-of select="dcif:language"/> 251 </xsl:otherwise> 252 </xsl:choose> 253 <xsl:text> </xsl:text> 254 <xsl:value-of select="isocat:name(.)"/> 255 </th> 256 </tr> 257 <xsl:apply-templates select="child::*[empty(child::*)] except dcif:note"> 258 <xsl:with-param name="class" select="$classes" tunnel="yes"/> 259 </xsl:apply-templates> 260 <xsl:apply-templates select="child::*[exists(child::*)]"> 261 <xsl:with-param name="class" select="$classes" tunnel="yes"/> 262 </xsl:apply-templates> 263 <xsl:if test="exists(dcif:note[normalize-space(.)!=''])"> 264 <tr class="DC-header {$classes}"> 265 <th colspan="2" class="DC-header-level-x"> 266 <xsl:value-of select="isocat:section(.)"/> 267 <xsl:text>.</xsl:text> 268 <xsl:value-of select="count(child::*[exists(child::*)]) + 1"/> 269 <xsl:text> Note Section</xsl:text> 270 </th> 271 </tr> 272 <xsl:apply-templates select="dcif:note[normalize-space(.)!='']"> 273 <xsl:with-param name="class" select="$classes" tunnel="yes"/> 274 </xsl:apply-templates> 275 </xsl:if> 276 </xsl:template> 277 285 278 <xsl:template match="dcif:administrationRecord" priority="1"> 286 279 <xsl:param name="class" select="''" tunnel="yes"/> … … 331 324 </xsl:if> 332 325 </xsl:template> 333 326 334 327 <xsl:template match="*[empty(child::dcif:*)]"> 335 <xsl:param name="class" select="''" tunnel="yes"/> 336 <tr class="DC-data{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 337 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 338 <xsl:attribute name="style" select="'color:gray;'"/> 339 </xsl:if> 340 <td class="DC-data-label"> 341 <xsl:value-of select="isocat:name(.)"/> 342 </td> 343 <td class="DC-data-value"> 344 <div> 345 <xsl:if test="exists(@isocat:direction)"> 346 <xsl:attribute name="style" select="concat('direction:',@isocat:direction,';')"/> 347 </xsl:if> 348 <xsl:choose> 349 <xsl:when test="normalize-space(.)!=''"> 350 <xsl:value-of select="text()"/> 351 </xsl:when> 352 <xsl:when test="exists(@pid)"> 353 <a href="{@pid}" target="other"> 354 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 355 <xsl:attribute name="style" select="'color:gray;'"/> 356 </xsl:if> 357 <xsl:choose> 358 <xsl:when test="exists(@isocat:name)"> 359 <xsl:value-of select="@isocat:name"/> 360 </xsl:when> 361 <xsl:otherwise> 362 <xsl:value-of select="@pid"/> 363 </xsl:otherwise> 364 </xsl:choose> 365 </a> 366 </xsl:when> 367 </xsl:choose> 368 </div> 369 </td> 370 </tr> 371 </xsl:template> 372 373 <xsl:template match="*[exists(child::dcif:*)]"> 374 <xsl:param name="class" select="''" tunnel="yes"/> 375 <xsl:variable name="level" select="isocat:level(.)"/> 376 <tr class="DC-header{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 377 <th colspan="2"> 378 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 379 <xsl:attribute name="style" select="'color:gray;'"/> 380 </xsl:if> 381 <xsl:choose> 382 <xsl:when test="$level < 1"> 383 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 384 <xsl:value-of select="isocat:section(.)"/> 385 <xsl:text>. </xsl:text> 386 <xsl:value-of select="isocat:name(.)"/> 387 </xsl:when> 388 <xsl:when test="$level < 2"> 389 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 390 <xsl:value-of select="isocat:section(.)"/> 391 <xsl:text> </xsl:text> 392 <xsl:value-of select="isocat:name(.)"/> 393 </xsl:when> 394 <xsl:otherwise> 395 <xsl:attribute name="class" select="'DC-header-level-x'"/> 396 <xsl:value-of select="isocat:section(.)"/> 397 <xsl:text> </xsl:text> 398 <xsl:value-of select="isocat:name(.)"/> 399 </xsl:otherwise> 400 </xsl:choose> 401 </th> 402 </tr> 403 <xsl:apply-templates select="child::*[empty(child::*)] except dcif:note"/> 404 <xsl:apply-templates select="child::*[exists(child::*)]"/> 405 <xsl:if test="exists(dcif:note[normalize-space(.)!=''])"> 406 <tr class="DC-header"> 407 <th colspan="2" class="DC-header-level-x"> 408 <xsl:value-of select="isocat:section(.)"/> 409 <xsl:text>.</xsl:text> 410 <xsl:value-of select="count(child::*[exists(child::*)]) + 1"/> 411 <xsl:text> Note Section</xsl:text> 412 </th> 413 </tr> 414 <xsl:apply-templates select="dcif:note[normalize-space(.)!='']"/> 415 </xsl:if> 416 </xsl:template> 417 418 <xsl:template name="DC"> 419 <div class="DC"> 420 <table class="DC"> 421 <xsl:for-each select="//dcif:dataCategory"> 422 <xsl:variable name="title" select="isocat:title(.)"/> 423 <xsl:if test="exists($title) and (normalize-space($title)!='')"> 424 <tr class="DC-title"> 425 <th colspan="2"> 426 <xsl:value-of select="isocat:title(.)"/> 427 </th> 428 </tr> 429 </xsl:if> 430 <xsl:choose> 431 <xsl:when test=".//dcif:registrationStatus='superseded'"> 432 <tr class="DC-title"> 433 <th colspan="2"> 434 <span style="color:red;font-weight:bold;">WARNING: </span> 435 <xsl:text>This data category is superseded</xsl:text> 436 <xsl:if test="exists(isocat:next)"> 437 <xsl:for-each select="isocat:next"> 438 <xsl:text> by </xsl:text> 439 <span> 440 <xsl:text>/</xsl:text> 441 <a href="{@pid}" target="other" datcat="{@isocat:id}"> 442 <xsl:value-of select="@isocat:identifier"/> 443 <xsl:text>-</xsl:text> 444 <xsl:value-of select="@isocat:version"/> 445 </a> 446 <xsl:text>/</xsl:text> 447 </span> 448 <span> 449 <xsl:if test="exists(@isocat:name) and (@isocat:name!=@isocat:identifier)"> 450 <xsl:text> (</xsl:text> 451 <xsl:value-of select="@isocat:name"/> 452 <xsl:text>)</xsl:text> 453 </xsl:if> 454 </span> 455 </xsl:for-each> 456 </xsl:if> 457 <xsl:text>!</xsl:text> 458 </th> 459 </tr> 460 </xsl:when> 461 <xsl:when test=".//dcif:registrationStatus='deprecated'"> 462 <tr class="DC-title"> 463 <th colspan="2"> 464 <span style="color:red;font-weight:bold;">WARNING: </span> 465 <xsl:text>This data category is deprecated! Refrain from using it.</xsl:text> 466 </th> 467 </tr> 468 </xsl:when> 469 <xsl:otherwise> 470 <xsl:for-each select="isocat:recommendedBy"> 471 <tr class="DC-data"> 472 <td class="DC-data-label">Recommended by</td> 473 <td class="DC-data-value"> 474 <a href="{$props//site}rest/group/{@id}" group="{@id}"><xsl:value-of select="."/></a> 475 </td> 476 </tr> 477 </xsl:for-each> 478 <xsl:if test="exists(isocat:recommendedBy)"> 479 <tr> 480 <th colspan="2"> </th> 481 </tr> 482 </xsl:if> 483 </xsl:otherwise> 484 </xsl:choose> 485 <!--<tr class="DC-data"> 328 <xsl:param name="class" select="''" tunnel="yes"/> 329 <tr class="DC-data{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 330 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 331 <xsl:attribute name="style" select="'color:gray;'"/> 332 </xsl:if> 333 <td class="DC-data-label"> 334 <xsl:value-of select="isocat:name(.)"/> 335 </td> 336 <td class="DC-data-value"> 337 <div> 338 <xsl:if test="exists(@isocat:direction)"> 339 <xsl:attribute name="style" select="concat('direction:',@isocat:direction,';')"/> 340 </xsl:if> 341 <xsl:choose> 342 <xsl:when test="normalize-space(.)!=''"> 343 <xsl:value-of select="text()"/> 344 </xsl:when> 345 <xsl:when test="exists(@pid)"> 346 <a href="{@pid}" target="other"> 347 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 348 <xsl:attribute name="style" select="'color:gray;'"/> 349 </xsl:if> 350 <xsl:choose> 351 <xsl:when test="exists(@isocat:name)"> 352 <xsl:value-of select="@isocat:name"/> 353 </xsl:when> 354 <xsl:otherwise> 355 <xsl:value-of select="@pid"/> 356 </xsl:otherwise> 357 </xsl:choose> 358 </a> 359 </xsl:when> 360 </xsl:choose> 361 </div> 362 </td> 363 </tr> 364 </xsl:template> 365 366 <xsl:template match="*[exists(child::dcif:*)]"> 367 <xsl:param name="class" select="''" tunnel="yes"/> 368 <xsl:variable name="level" select="isocat:level(.)"/> 369 <tr class="DC-header{if (normalize-space($class)!='') then (concat(' ',$class)) else ()}"> 370 <th colspan="2"> 371 <xsl:if test="ancestor-or-self::*/@isocat:suppress='true'"> 372 <xsl:attribute name="style" select="'color:gray;'"/> 373 </xsl:if> 374 <xsl:choose> 375 <xsl:when test="$level < 1"> 376 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 377 <xsl:value-of select="isocat:section(.)"/> 378 <xsl:text>. </xsl:text> 379 <xsl:value-of select="isocat:name(.)"/> 380 </xsl:when> 381 <xsl:when test="$level < 2"> 382 <xsl:attribute name="class" select="concat('DC-header-level-',$level + 1)"/> 383 <xsl:value-of select="isocat:section(.)"/> 384 <xsl:text> </xsl:text> 385 <xsl:value-of select="isocat:name(.)"/> 386 </xsl:when> 387 <xsl:otherwise> 388 <xsl:attribute name="class" select="'DC-header-level-x'"/> 389 <xsl:value-of select="isocat:section(.)"/> 390 <xsl:text> </xsl:text> 391 <xsl:value-of select="isocat:name(.)"/> 392 </xsl:otherwise> 393 </xsl:choose> 394 </th> 395 </tr> 396 <xsl:apply-templates select="child::*[empty(child::*)] except dcif:note"/> 397 <xsl:apply-templates select="child::*[exists(child::*)]"/> 398 <xsl:if test="exists(dcif:note[normalize-space(.)!=''])"> 399 <tr class="DC-header"> 400 <th colspan="2" class="DC-header-level-x"> 401 <xsl:value-of select="isocat:section(.)"/> 402 <xsl:text>.</xsl:text> 403 <xsl:value-of select="count(child::*[exists(child::*)]) + 1"/> 404 <xsl:text> Note Section</xsl:text> 405 </th> 406 </tr> 407 <xsl:apply-templates select="dcif:note[normalize-space(.)!='']"/> 408 </xsl:if> 409 </xsl:template> 410 411 <xsl:template name="DC"> 412 <div class="DC"> 413 <table class="DC"> 414 <xsl:for-each select="//dcif:dataCategory"> 415 <xsl:variable name="title" select="isocat:title(.)"/> 416 <xsl:if test="exists($title) and (normalize-space($title)!='')"> 417 <tr class="DC-title"> 418 <th colspan="2"> 419 <xsl:value-of select="isocat:title(.)"/> 420 </th> 421 </tr> 422 </xsl:if> 423 <xsl:choose> 424 <xsl:when test=".//dcif:registrationStatus='superseded'"> 425 <tr class="DC-title"> 426 <th colspan="2"> 427 <span style="color:red;font-weight:bold;">WARNING: </span> 428 <xsl:text>This data category is superseded</xsl:text> 429 <xsl:if test="exists(isocat:next)"> 430 <xsl:for-each select="isocat:next"> 431 <xsl:text> by </xsl:text> 432 <span> 433 <xsl:text>/</xsl:text> 434 <a href="{@pid}" target="other" datcat="{@isocat:id}"> 435 <xsl:value-of select="@isocat:identifier"/> 436 <xsl:text>-</xsl:text> 437 <xsl:value-of select="@isocat:version"/> 438 </a> 439 <xsl:text>/</xsl:text> 440 </span> 441 <span> 442 <xsl:if test="exists(@isocat:name) and (@isocat:name!=@isocat:identifier)"> 443 <xsl:text> (</xsl:text> 444 <xsl:value-of select="@isocat:name"/> 445 <xsl:text>)</xsl:text> 446 </xsl:if> 447 </span> 448 </xsl:for-each> 449 </xsl:if> 450 <xsl:text>!</xsl:text> 451 </th> 452 </tr> 453 </xsl:when> 454 <xsl:when test=".//dcif:registrationStatus='deprecated'"> 455 <tr class="DC-title"> 456 <th colspan="2"> 457 <span style="color:red;font-weight:bold;">WARNING: </span> 458 <xsl:text>This data category is deprecated! Refrain from using it.</xsl:text> 459 </th> 460 </tr> 461 </xsl:when> 462 <xsl:otherwise> 463 <xsl:for-each select="isocat:recommendedBy"> 464 <tr class="DC-data"> 465 <td class="DC-data-label">Recommended by</td> 466 <td class="DC-data-value"> 467 <a href="{$props//site}rest/group/{@id}" group="{@id}"> 468 <xsl:value-of select="."/> 469 </a> 470 </td> 471 </tr> 472 </xsl:for-each> 473 <xsl:if test="exists(isocat:recommendedBy)"> 474 <tr> 475 <th colspan="2"> </th> 476 </tr> 477 </xsl:if> 478 </xsl:otherwise> 479 </xsl:choose> 480 <!--<tr class="DC-data"> 486 481 <td class="DC-data-label">Key</td> 487 482 <td class="DC-data-value"> … … 489 484 </td> 490 485 </tr>--> 491 <tr class="DC-data"> 492 <td class="DC-data-label">PID</td> 493 <td class="DC-data-value"> 494 <a href="{@pid}" target="other"> 495 <xsl:value-of select="@pid"/> 496 </a> 497 </td> 498 </tr> 499 <tr class="DC-data"> 500 <td class="DC-data-label">Type</td> 501 <td class="DC-data-value"> 502 <xsl:choose> 503 <xsl:when test="@isocat:type=@type"> 504 <xsl:value-of select="@type"/> 505 </xsl:when> 506 <xsl:otherwise> 507 <xsl:value-of select="@type"/> 508 <xsl:text>/</xsl:text> 509 <xsl:value-of select="@isocat:type"/> 510 </xsl:otherwise> 511 </xsl:choose> 512 </td> 513 </tr> 514 <tr class="DC-data"> 515 <td class="DC-data-label">Owner</td> 516 <td class="DC-data-value"> 517 <xsl:choose> 518 <xsl:when test="exists(@isocat:owner_forum)"> 519 <a href="{$props//forum_site}ucp.php?mode=login&redirect=./memberlist.php?mode=viewprofile%26u={@isocat:owner_forum}" target="forum"> 520 <xsl:value-of select="@isocat:owner"/> 521 </a> 522 </xsl:when> 523 <xsl:otherwise> 524 <xsl:value-of select="@isocat:owner"/> 525 </xsl:otherwise> 526 </xsl:choose> 527 </td> 528 </tr> 529 <tr class="DC-data"> 530 <td class="DC-data-label">Scope</td> 531 <td class="DC-data-value"> 532 <xsl:value-of select="@isocat:scope"/> 533 </td> 534 </tr> 535 <xsl:if test="exists(dcif:isA)"> 536 <tr> 537 <th colspan="2"> </th> 538 </tr> 539 <xsl:for-each select="dcif:isA"> 540 <xsl:call-template name="reference"/> 541 </xsl:for-each> 542 </xsl:if> 543 <xsl:apply-templates/> 544 </xsl:for-each> 545 </table> 546 </div> 547 </xsl:template> 548 549 <xsl:template match="/dcif:dataCategorySelection" priority="1"> 550 <html> 551 <head> 552 <xsl:variable name="title" select="isocat:title(.)"/> 553 <xsl:if test="exists($title) and (normalize-space($title)!='')"> 554 <title> 555 <xsl:value-of select="isocat:title(.)"/> 556 </title> 557 </xsl:if> 558 <link rel="stylesheet" href="{$props//site}interface/JSXAPPS/ISOcat/css/style.css" type="text/css"/> 559 <script type="text/javascript" src="{$props//site}interface/addins/jquery/js/jquery-1.6.4.js"> 486 <tr class="DC-data"> 487 <td class="DC-data-label">PID</td> 488 <td class="DC-data-value"> 489 <a href="{@pid}" target="other"> 490 <xsl:value-of select="@pid"/> 491 </a> 492 </td> 493 </tr> 494 <tr class="DC-data"> 495 <td class="DC-data-label">Type</td> 496 <td class="DC-data-value"> 497 <xsl:choose> 498 <xsl:when test="@isocat:type=@type"> 499 <xsl:value-of select="@type"/> 500 </xsl:when> 501 <xsl:otherwise> 502 <xsl:value-of select="@type"/> 503 <xsl:text>/</xsl:text> 504 <xsl:value-of select="@isocat:type"/> 505 </xsl:otherwise> 506 </xsl:choose> 507 </td> 508 </tr> 509 <tr class="DC-data"> 510 <td class="DC-data-label">Owner</td> 511 <td class="DC-data-value"> 512 <xsl:choose> 513 <xsl:when test="exists(@isocat:owner_forum)"> 514 <a href="{$props//forum_site}ucp.php?mode=login&redirect=./memberlist.php?mode=viewprofile%26u={@isocat:owner_forum}" target="forum"> 515 <xsl:value-of select="@isocat:owner"/> 516 </a> 517 </xsl:when> 518 <xsl:otherwise> 519 <xsl:value-of select="@isocat:owner"/> 520 </xsl:otherwise> 521 </xsl:choose> 522 </td> 523 </tr> 524 <tr class="DC-data"> 525 <td class="DC-data-label">Scope</td> 526 <td class="DC-data-value"> 527 <xsl:value-of select="@isocat:scope"/> 528 </td> 529 </tr> 530 <xsl:if test="exists(dcif:isA)"> 531 <tr> 532 <th colspan="2"> </th> 533 </tr> 534 <xsl:for-each select="dcif:isA"> 535 <xsl:call-template name="reference"/> 536 </xsl:for-each> 537 </xsl:if> 538 <xsl:apply-templates/> 539 </xsl:for-each> 540 </table> 541 </div> 542 </xsl:template> 543 544 <xsl:template name="license"> 545 <div style="margin:1em;text-align:center;"> 546 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"> 547 <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/4.0/88x31.png"/> 548 </a> 549 <br/> 550 <xsl:text>This work by </xsl:text> 551 <a xmlns:cc="http://creativecommons.org/ns#" href="{dcif:dataCategory/@pid}" property="cc:attributionName" rel="cc:attributionURL"> 552 <xsl:value-of select="dcif:dataCategory/@pid"/> 553 </a> 554 <xsl:text> is licensed under a </xsl:text> 555 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a> 556 <xsl:text>.</xsl:text> 557 <br/> 558 <xsl:text>(Use the data category PID (</xsl:text> 559 <xsl:value-of select="dcif:dataCategory/@pid"/> 560 <xsl:text>) for the attribution.)</xsl:text> 561 </div> 562 </xsl:template> 563 564 <xsl:template match="/dcif:dataCategorySelection" priority="1"> 565 <html> 566 <head> 567 <xsl:variable name="title" select="isocat:title(.)"/> 568 <xsl:if test="exists($title) and (normalize-space($title)!='')"> 569 <title> 570 <xsl:value-of select="isocat:title(.)"/> 571 </title> 572 </xsl:if> 573 <link rel="stylesheet" href="{$props//site}interface/JSXAPPS/ISOcat/css/style.css" type="text/css"/> 574 <script type="text/javascript" src="{$props//site}interface/addins/jquery/js/jquery-1.6.4.js"> 560 575 <xsl:comment>keep the script alive in IE</xsl:comment> 561 576 </script> 562 577 <script type="text/javascript"> 563 578 $(document).ready(function() { 564 579 <xsl:for-each select=".//dcif:dataCategory"> … … 570 585 }); 571 586 </script> 572 </head> 573 <body> 574 <xsl:if test="$purpose='print'"> 575 <xsl:attribute name="onload" select="'self.print()'"/> 576 </xsl:if> 577 <xsl:text>[ </xsl:text> 578 <a href="{$props//site}rest/dc/{dcif:dataCategory/@isocat:id}/context">context</a> 579 <xsl:text> | </xsl:text> 580 <a href="{$props//site}rest/dc/{dcif:dataCategory/@isocat:id}/history">history</a> 581 <xsl:text> ]</xsl:text> 582 <div class="main"> 583 <xsl:call-template name="DC"/> 584 </div> 585 </body> 586 </html> 587 </xsl:template> 587 </head> 588 <body> 589 <xsl:if test="$purpose='print'"> 590 <xsl:attribute name="onload" select="'self.print()'"/> 591 </xsl:if> 592 <xsl:text>[ </xsl:text> 593 <a href="{$props//site}rest/dc/{dcif:dataCategory/@isocat:id}/context">context</a> 594 <xsl:text> | </xsl:text> 595 <a href="{$props//site}rest/dc/{dcif:dataCategory/@isocat:id}/history">history</a> 596 <xsl:text> ]</xsl:text> 597 <div class="main"> 598 <xsl:call-template name="DC"/> 599 <xsl:call-template name="license"/> 600 </div> 601 </body> 602 </html> 603 </xsl:template> 588 604 589 605 </xsl:stylesheet> -
cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/rdf/dc.xsl
r5278 r5364 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:dcr="http://www.isocat.org/ns/dcr.rdf#" xmlns:isocat="http://www.isocat.org/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" exclude-result-prefixes="dcif isocat">2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:dcr="http://www.isocat.org/ns/dcr.rdf#" xmlns:isocat="http://www.isocat.org/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:cc="http://creativecommons.org/ns#" exclude-result-prefixes="dcif isocat"> 3 3 <xsl:output method="xml" encoding="utf-8" indent="yes"/> 4 4 <xsl:variable name="NL" select="system-property('line.separator')"/> … … 42 42 </rdfs:comment> 43 43 </xsl:if> 44 <cc:license rdf:resource="http://creativecommons.org/licenses/by/4.0/"/> 44 45 </xsl:for-each> 45 46 </rdf:Description>
Note: See TracChangeset
for help on using the changeset viewer.