home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / style.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.6 KB  |  63 lines

  1. <?xml version='1.0'?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17.  
  18. <!DOCTYPE xsl:stylesheet [
  19.  <!ENTITY % ISOnum PUBLIC
  20.    "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
  21.    "ISOnum.pen">
  22.  %ISOnum;
  23. ]>
  24.  
  25. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  26.                 version='1.0'>
  27.  
  28. <xsl:output method="html"/>
  29.  
  30. <xsl:template match="catalog-demo">
  31. <html>
  32.  <head>
  33.   <title>Demonstration of entity resolution using catalogs</title>
  34.  </head>
  35.  <body>
  36.   <xsl:apply-templates/>
  37.   <p>
  38.    This footer is applied by the stylesheet. The following entity is resolved
  39.    by the parser when it interprets the stylesheet
  40.    <br/>Use &frac14; to represent ¼ (one-quarter symbol)
  41.    <br/>The ISOnum entity set was declared in the header of the stylesheet.
  42.   </p>
  43.  </body>
  44. </html>
  45. </xsl:template>
  46.  
  47. <xsl:template match="section">
  48.  <xsl:apply-templates/>
  49. <hr/>
  50. </xsl:template>
  51.  
  52. <xsl:template match="para">
  53. <p>
  54.  <xsl:apply-templates/>
  55. </p>
  56. </xsl:template>
  57.  
  58. <xsl:template match="link">
  59. <a href="{@href}"><xsl:apply-templates/></a>
  60. </xsl:template>
  61.  
  62. </xsl:stylesheet>
  63.