Changeset 26460 for main/trunk/greenstone3
- Timestamp:
- 2012-11-14T15:41:12+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl
r26439 r26460 11 11 <xsl:param name="site_name"/> 12 12 <xsl:param name="collName"/> 13 13 14 14 <xsl:output method="xml"/> 15 15 <xsl:namespace-alias stylesheet-prefix="xslt" result-prefix="xsl"/> … … 20 20 </format> 21 21 </xsl:template> 22 22 23 23 <xsl:template match="gsf:template"> 24 24 <xslt:template> … … 32 32 </xslt:template> 33 33 </xsl:template> 34 34 35 35 <xsl:template match="gsf:variable"> 36 36 <xslt:variable> … … 39 39 </xslt:variable> 40 40 <script type="text/javascript"> 41 gs.variables.<xsl:value-of select="@name"/><xslt:text disable-output-escaping="yes"> = "</xslt:text><xsl:apply-templates/><xslt:text disable-output-escaping="yes">";</xslt:text> 41 gs.variables.<xsl:value-of select="@name"/> 42 <xslt:text disable-output-escaping="yes"> = "</xslt:text> 43 <xsl:apply-templates/> 44 <xslt:text disable-output-escaping="yes">";</xslt:text> 42 45 </script> 43 46 </xsl:template> 44 47 45 48 <xsl:template match="gsf:defaultClassifierNode"> 46 49 <xslt:call-template name="defaultClassifierNode"/> … … 49 52 50 53 <xsl:template match="gsf:script[@src]"> 51 <script> 52 <xsl:attribute name='src'> 53 <xsl:value-of select="@src"/> 54 </xsl:attribute> 55 <xslt:attribute name='type'>text/javascript</xslt:attribute> 56 <xslt:comment></xslt:comment><!-- comment used to ensure script tag is not collapsed --> 57 </script> 54 <script> 55 <xsl:attribute name='src'> 56 <xsl:value-of select="@src"/> 57 </xsl:attribute> 58 <xslt:attribute name='type'>text/javascript</xslt:attribute> 59 <xslt:comment/> 60 <!-- comment used to ensure script tag is not collapsed --> 61 </script> 58 62 </xsl:template> 59 63 60 64 61 65 <xsl:template match="gsf:script"> 62 63 64 65 66 66 <script type="text/javascript"> 67 <xslt:text disable-output-escaping="yes"> 68 <xsl:apply-templates/> 69 </xslt:text> 70 </script> 67 71 </xsl:template> 68 72 69 73 70 74 <xsl:template match="gsf:style[@src]"> 71 72 73 74 75 75 <link rel="stylesheet" type="text/css"> 76 <xsl:attribute name='href'> 77 <xsl:value-of select="@src"/> 78 </xsl:attribute> 79 </link> 76 80 </xsl:template> 77 81 78 82 <xsl:template match="gsf:style"> 79 80 81 83 <style type="text/css"> 84 <xsl:apply-templates/> 85 </style> 82 86 </xsl:template> 83 87 … … 105 109 106 110 <xsl:template match="gsf:link"> 107 <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 108 <xsl:variable name="opt-title"> 109 <xsl:choose> 110 <xsl:when test="@title"><xslt:attribute name="title"><xsl:value-of select="@title"/></xslt:attribute></xsl:when> 111 <xsl:when test="@titlekey"><xslt:attribute name="title"><xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@titlekey}')"/></xslt:attribute></xsl:when> 112 </xsl:choose> 113 </xsl:variable> 111 <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 112 <xsl:variable name="opt-title"> 113 <xsl:choose> 114 <xsl:when test="@title"> 115 <xslt:attribute name="title"> 116 <xsl:value-of select="@title"/> 117 </xslt:attribute> 118 </xsl:when> 119 <xsl:when test="@titlekey"> 120 <xslt:attribute name="title"> 121 <xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@titlekey}')"/> 122 </xslt:attribute> 123 </xsl:when> 124 </xsl:choose> 125 </xsl:variable> 114 126 <xsl:choose> 115 127 <xsl:when test="@type='query'"> … … 129 141 </xsl:choose> 130 142 </xslt:attribute> 131 143 <xsl:copy-of select="$opt-title"/> 132 144 <xsl:apply-templates/> 133 145 </a> … … 149 161 </xsl:choose> 150 162 </xslt:attribute> 151 163 <xsl:copy-of select="$opt-title"/> 152 164 <xsl:apply-templates/> 153 165 </a> 154 166 </xsl:when> 155 167 <xsl:when test="@type='source'"> 156 <a><xslt:attribute name='href'><xslt:value-of 168 <a> 169 <xslt:attribute name='href'> 170 <xslt:value-of 157 171 disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']" />/index/assoc/<xslt:value-of 158 172 disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='assocfilepath']" />/<xslt:value-of 159 disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='srclinkFile']" /></xslt:attribute> 160 <xsl:copy-of select="$opt-title"/> 161 <xsl:apply-templates/> 173 disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='srclinkFile']" /> 174 </xslt:attribute> 175 <xsl:copy-of select="$opt-title"/> 176 <xsl:apply-templates/> 162 177 </a> 163 178 </xsl:when> 164 179 <xsl:when test="@type='web'"> 165 <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, 'weblink')]"/>166 167 180 <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, 'weblink')]"/> 181 <xsl:apply-templates/> 182 <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, '/weblink')]"/> 168 183 </xsl:when> 169 184 <xsl:when test="@type='page'"> … … 176 191 <xsl:value-of select="@page"/> 177 192 </xslt:attribute> 178 179 <xsl:apply-templates/>193 <xsl:copy-of select="$opt-title"/> 194 <xsl:apply-templates/> 180 195 </a> 181 196 </xsl:when> 182 197 <xsl:when test="@type='equivdoc'"> 183 <xsl:call-template name="gsf:equivlinkgs3"/> 184 </xsl:when> 185 <xsl:otherwise> <!-- a document link --> 198 <xsl:call-template name="gsf:equivlinkgs3"/> 199 </xsl:when> 200 <xsl:otherwise> 201 <!-- a document link --> 186 202 <xslt:variable name="bookswitch"> 187 203 <xslt:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/> 188 204 </xslt:variable> 189 205 <a> 190 206 <xsl:copy-of select="$opt-title"/> 191 207 <xslt:attribute name="href"> 192 208 <xslt:value-of select='$library_name'/> … … 194 210 <xslt:value-of select='/page/pageResponse/collection/@name'/> 195 211 <xsl:text>/document/</xsl:text> 196 <xsl:choose><xsl:when test="@OID"><xsl:value-of select="@OID"/></xsl:when><xsl:when test="@OIDmetadata"><xsl:variable name="OIDmeta" select="@OIDmetadata"/><xslt:value-of select="(.//metadataList)[last()]/metadata[@name='{$OIDmeta}']"/></xsl:when><xsl:otherwise> 197 <xslt:value-of select='@nodeID'/></xsl:otherwise></xsl:choose> 212 <xsl:choose> 213 <xsl:when test="@OID"> 214 <xsl:value-of select="@OID"/> 215 </xsl:when> 216 <xsl:when test="@OIDmetadata"> 217 <xsl:variable name="OIDmeta" select="@OIDmetadata"/> 218 <xslt:value-of select="(.//metadataList)[last()]/metadata[@name='{$OIDmeta}']"/> 219 </xsl:when> 220 <xsl:otherwise> 221 <xslt:value-of select='@nodeID'/> 222 </xsl:otherwise> 223 </xsl:choose> 198 224 <xslt:choose> 199 225 <xslt:when test="$bookswitch = 'on' or $bookswitch = 'flashxml'"> … … 201 227 </xslt:when> 202 228 <xslt:otherwise> 203 <xslt:if test="$opt-doc-link-args">?<xslt:value-of select="$opt-doc-link-args"/></xslt:if> 229 <xslt:if test="$opt-doc-link-args">?<xslt:value-of select="$opt-doc-link-args"/> 230 </xslt:if> 204 231 </xslt:otherwise> 205 232 </xslt:choose> … … 214 241 <xsl:choose> 215 242 <xsl:when test="@type='classifier'"> 216 <img style="border:0px"><xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'bookshelf_image')"/></xsl:attribute></img> 243 <img style="border:0px"> 244 <xsl:attribute name="src"> 245 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'bookshelf_image')"/> 246 </xsl:attribute> 247 </img> 217 248 </xsl:when> 218 249 <xsl:when test="@type='web'"> 219 250 <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, 'webicon')]"/> 220 251 </xsl:when> 221 252 <xsl:when test="@file"> 222 223 224 225 <xsl:when test="not(@select) or @select='site'">226 227 </xsl:when>228 <xsl:when test="@select='collection'">229 230 231 </xsl:when>232 233 234 253 <img> 254 <xslt:attribute name='src'> 255 <xsl:choose> 256 <xsl:when test="not(@select) or @select='site'"> 257 <xsl:value-of disable-output-escaping="yes" select="concat('interfaces/',$interface_name,'/images/',@file)"/> 258 </xsl:when> 259 <xsl:when test="@select='collection'"> 260 <xslt:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/> 261 <xsl:value-of disable-output-escaping="yes" select="concat('/images/',@file)"/> 262 </xsl:when> 263 </xsl:choose> 264 </xslt:attribute> 265 </img> 235 266 </xsl:when> 236 267 <xsl:when test="not(@type) or @type='document'"> 237 <img style="border:0px"><xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/></xslt:attribute><xslt:attribute name="src"> 238 <xslt:choose> 239 <xslt:when test="@docType='hierarchy' and @nodeType='root'"> 240 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'book_image')"/> 241 </xslt:when> 242 <xslt:otherwise> 243 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_icon_image')"/> 244 </xslt:otherwise> 245 </xslt:choose> 246 </xslt:attribute></img> 268 <img style="border:0px"> 269 <xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/> 270 </xslt:attribute> 271 <xslt:attribute name="src"> 272 <xslt:choose> 273 <xslt:when test="@docType='hierarchy' and @nodeType='root'"> 274 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'book_image')"/> 275 </xslt:when> 276 <xslt:otherwise> 277 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_icon_image')"/> 278 </xslt:otherwise> 279 </xslt:choose> 280 </xslt:attribute> 281 </img> 247 282 </xsl:when> 248 283 </xsl:choose> 249 284 </xsl:template> 250 251 252 285 286 <!-- calls a template in gslib.xsl in order to avoid xsl vs xslt issue --> 287 <!--<xsl:template match="gsf:equivlinkgs3"> 253 288 <xslt:call-template name="equivDocLinks"> 254 289 <xslt:with-param name="count" select="0"/> … … 256 291 </xsl:template>--> 257 292 258 259 260 <xslt:variable name="docicon" select="metadataList/metadata[contains(@name, 'equivDocIcon')]"/>261 <xslt:variable name="docStartlink" select="metadataList/metadata[contains(@name, 'all_*,*_equivDocLink')]"/>262 <xslt:variable name="docEndlink" select="metadataList/metadata[contains(@name, '/equivDocLink')]"/>263 264 <xslt:variable name="equivDocLinks" select="java:org.greenstone.gsdl3.util.XSLTUtil.getEquivDocLinks(',',$docicon, $docStartlink, $docEndlink, ' ')" />265 <xslt:value-of disable-output-escaping="yes" select="$equivDocLinks"/>266 267 268 <!--293 <!-- Another way (also works with DSpace tutorial): build all the equivalent document links for the current document in one go. No looping necessary: handled in function call. --> 294 <xsl:template match="gsf:equivlinkgs3" name="gsf:equivlinkgs3"> 295 <xslt:variable name="docicon" select="metadataList/metadata[contains(@name, 'equivDocIcon')]"/> 296 <xslt:variable name="docStartlink" select="metadataList/metadata[contains(@name, 'all_*,*_equivDocLink')]"/> 297 <xslt:variable name="docEndlink" select="metadataList/metadata[contains(@name, '/equivDocLink')]"/> 298 299 <xslt:variable name="equivDocLinks" select="java:org.greenstone.gsdl3.util.XSLTUtil.getEquivDocLinks(',',$docicon, $docStartlink, $docEndlink, ' ')" /> 300 <xslt:value-of disable-output-escaping="yes" select="$equivDocLinks"/> 301 </xsl:template> 302 303 <!-- 269 304 In the collection's format statement, could have the following javascript+XSLT in place of 270 305 the gsf:equivlinkgs3 element (which resolves to the XSLT in config_format.xsl and gslib.xsl). … … 292 327 If the requested string occurs in neither, the request string itself will be output. --> 293 328 <xsl:template match="gsf:displayText"> 294 295 296 297 298 299 300 301 302 303 304 <xsl:call-template name="gsf:interfaceText"/>305 306 307 308 <xslt:when test="$interfacetxt != ''">309 310 </xslt:when>311 <xslt:otherwise>312 313 </xslt:otherwise>314 315 316 329 <xslt:variable name="displaytext"> 330 <xsl:call-template name="gsf:displayItem"/> 331 </xslt:variable> 332 333 <xslt:choose> 334 <xslt:when test="$displaytext != ''"> 335 <xslt:value-of disable-output-escaping="yes" select="$displaytext"/> 336 </xslt:when> 337 <xslt:otherwise> 338 <xslt:variable name="interfacetxt"> 339 <xsl:call-template name="gsf:interfaceText"/> 340 </xslt:variable> 341 342 <xslt:choose> 343 <xslt:when test="$interfacetxt != ''"> 344 <xslt:value-of disable-output-escaping="yes" select="$interfacetxt"/> 345 </xslt:when> 346 <xslt:otherwise> 347 <xslt:value-of disable-output-escaping="yes" select="'{@name}'"/> 348 </xslt:otherwise> 349 </xslt:choose> 350 </xslt:otherwise> 351 </xslt:choose> 317 352 </xsl:template> 318 353 319 354 <!-- With gsf:displayItem, a user can request a displayItem from collectionConfig.xml --> 320 355 <xsl:template match="gsf:displayItem" name="gsf:displayItem"> 321 356 <xslt:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItem[@name='{@name}']"/> 322 357 </xsl:template> 323 358 324 359 <!-- With gsf:interfaceText, a user can request a string from the interface dictionaries in the current lang --> 325 360 <xsl:template match="gsf:interfaceText" name="gsf:interfaceText"> 326 361 <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/> 327 362 </xsl:template> 328 363 <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang --> 329 364 <xsl:template match="gsf:collectionText" name="gsf:collectionText"> 330 365 <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 331 366 <xslt:copy-of select="util:getCollectionText($collName, $site_name, /page/@lang, '{@name}', '{@args}')/node()"/> 332 367 </xsl:template> … … 336 371 <xsl:if test="not(@hidden = 'true')"> 337 372 <!-- set hidden=true on a gsf:metadata so that it gets retrieved from the server but not displayed --> 338 <xsl:variable name="meta_name"><xsl:call-template name="getMetadataName"/></xsl:variable> 373 <xsl:variable name="meta_name"> 374 <xsl:call-template name="getMetadataName"/> 375 </xsl:variable> 339 376 <xsl:variable name="separator"> 340 377 <xsl:choose> 341 <xsl:when test="@separator"><xsl:value-of disable-output-escaping='yes' select="@separator"/></xsl:when> 342 <xsl:when test="separator"><xsl:copy-of select="separator/node()"/></xsl:when> 343 <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise> 378 <xsl:when test="@separator"> 379 <xsl:value-of disable-output-escaping='yes' select="@separator"/> 380 </xsl:when> 381 <xsl:when test="separator"> 382 <xsl:copy-of select="separator/node()"/> 383 </xsl:when> 384 <xsl:otherwise> 385 <xsl:text>, </xsl:text> 386 </xsl:otherwise> 344 387 </xsl:choose> 345 388 </xsl:variable> 346 389 <xsl:variable name="prefix"> 347 390 <xsl:choose> 348 <xsl:when test="@prefix"><xsl:value-of disable-output-escaping='yes' select="@prefix"/></xsl:when> 349 <xsl:when test="prefix"><xsl:copy-of select="prefix/node()"/></xsl:when> 391 <xsl:when test="@prefix"> 392 <xsl:value-of disable-output-escaping='yes' select="@prefix"/> 393 </xsl:when> 394 <xsl:when test="prefix"> 395 <xsl:copy-of select="prefix/node()"/> 396 </xsl:when> 350 397 </xsl:choose> 351 398 </xsl:variable> 352 399 <xsl:variable name="suffix"> 353 400 <xsl:choose> 354 <xsl:when test="@suffix"><xsl:value-of disable-output-escaping='yes' select="@suffix"/></xsl:when> 355 <xsl:when test="suffix"><xsl:copy-of select="suffix/node()"/></xsl:when> 401 <xsl:when test="@suffix"> 402 <xsl:value-of disable-output-escaping='yes' select="@suffix"/> 403 </xsl:when> 404 <xsl:when test="suffix"> 405 <xsl:copy-of select="suffix/node()"/> 406 </xsl:when> 356 407 </xsl:choose> 357 408 </xsl:variable> … … 360 411 <xsl:when test="@pos = 'first'">position()=1</xsl:when> 361 412 <xsl:when test="@pos = 'last'">position() = last()</xsl:when> 362 <xsl:when test="@pos">position() = <xsl:value-of select="@pos"/></xsl:when> 413 <xsl:when test="@pos">position() = <xsl:value-of select="@pos"/> 414 </xsl:when> 363 415 <xsl:otherwise>true()</xsl:otherwise> 364 416 </xsl:choose> … … 372 424 <xslt:for-each> 373 425 <xsl:attribute name="select"> 374 <xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>(.//metadataList)[last()]/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang"><xsl:text> and @lang=</xsl:text><xsl:value-of select="@lang"/></xsl:if><xsl:text>]</xsl:text> 426 <xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>(.//metadataList)[last()]/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang"> 427 <xsl:text> and @lang=</xsl:text> 428 <xsl:value-of select="@lang"/> 429 </xsl:if> 430 <xsl:text>]</xsl:text> 375 431 </xsl:attribute> 376 432 <xslt:if test="{$postest}"> 377 <xslt:if test="{$multiple} and position()>1"><xsl:copy-of select="$separator"/></xslt:if> 433 <xslt:if test="{$multiple} and position()>1"><xsl:copy-of select="$separator"/> 434 </xslt:if> 378 435 <xsl:copy-of select="$prefix"/> 379 436 <xsl:choose> … … 391 448 </xsl:template> 392 449 393 394 395 396 397 398 399 450 <xsl:template name="getMetadataName"> 451 <xsl:if test='@select'> 452 <xsl:value-of select='@select'/> 453 <xsl:text>_</xsl:text> 454 </xsl:if> 455 <xsl:value-of select="@name"/> 456 </xsl:template> 400 457 401 458 <xsl:template match="gsf:text"> 402 459 <xslt:call-template name="documentNodeText"/> 403 460 </xsl:template> 404 405 <xsl:template match="gsf:if-metadata-exists"> 406 <xsl:variable name="meta-path"><xsl:for-each select="gsf:metadata">(.//metadataList)[last()]/metadata[@name='<xsl:call-template name="getMetadataName"/>']</xsl:for-each></xsl:variable> 407 <xslt:choose> 408 <xslt:when test="{$meta-path}"> 409 <xsl:apply-templates select="gsf:if/node()"/> 410 </xslt:when> 411 <xsl:if test="gsf:else"> 412 <xslt:otherwise><xsl:apply-templates select="gsf:else/node()"/> 413 </xslt:otherwise> 414 </xsl:if> 415 </xslt:choose> 416 </xsl:template> 461 462 <xsl:template match="gsf:if-metadata-exists"> 463 <xsl:variable name="meta-path"> 464 <xsl:for-each select="gsf:metadata">(.//metadataList)[last()]/metadata[@name='<xsl:call-template name="getMetadataName"/>']</xsl:for-each> 465 </xsl:variable> 466 <xslt:choose> 467 <xslt:when test="{$meta-path}"> 468 <xsl:apply-templates select="gsf:if/node()"/> 469 </xslt:when> 470 <xsl:if test="gsf:else"> 471 <xslt:otherwise> 472 <xsl:apply-templates select="gsf:else/node()"/> 473 </xslt:otherwise> 474 </xsl:if> 475 </xslt:choose> 476 </xsl:template> 417 477 418 478 <xsl:template match="gsf:choose-metadata"> … … 425 485 </xsl:for-each> 426 486 <xsl:if test="gsf:default"> 427 <xslt:otherwise><xsl:apply-templates select="gsf:default"/></xslt:otherwise> 487 <xslt:otherwise> 488 <xsl:apply-templates select="gsf:default"/> 489 </xslt:otherwise> 428 490 </xsl:if> 429 491 </xslt:choose> 430 492 </xsl:template> 431 493 432 494 <xsl:template match="gsf:switch"> 433 <xsl:variable name="meta-name"><xsl:for-each select="gsf:metadata"><xsl:call-template name="getMetadataName"/></xsl:for-each></xsl:variable> 434 <xslt:variable name="meta"><xsl:choose><xsl:when test="@preprocess"><xslt:value-of select="util:{@preprocess}((.//metadataList)[last()]/metadata[@name='{$meta-name}'], /page/@lang )"/></xsl:when><xsl:otherwise><xslt:value-of select="(.//metadataList)[last()]/metadata[@name='{$meta-name}']"/></xsl:otherwise></xsl:choose></xslt:variable> 495 <xsl:variable name="meta-name"> 496 <xsl:for-each select="gsf:metadata"> 497 <xsl:call-template name="getMetadataName"/> 498 </xsl:for-each> 499 </xsl:variable> 500 <xslt:variable name="meta"> 501 <xsl:choose> 502 <xsl:when test="@preprocess"> 503 <xslt:value-of select="util:{@preprocess}((.//metadataList)[last()]/metadata[@name='{$meta-name}'], /page/@lang )"/> 504 </xsl:when> 505 <xsl:otherwise> 506 <xslt:value-of select="(.//metadataList)[last()]/metadata[@name='{$meta-name}']"/> 507 </xsl:otherwise> 508 </xsl:choose> 509 </xslt:variable> 435 510 <xslt:choose> 436 511 <xsl:for-each select="gsf:when"> … … 446 521 </xslt:choose> 447 522 </xsl:template> 448 523 449 524 <xsl:template match="*"> 450 525 <xsl:copy> 451 <xsl:copy-of select="@*"/>526 <xsl:copy-of select="@*"/> 452 527 <xsl:apply-templates/> 453 528 </xsl:copy>
Note:
See TracChangeset
for help on using the changeset viewer.