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 / forms-samples-styling.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.8 KB  |  48 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. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  18.  
  19.   <!--+ Include styling stylesheets, one for the widgets, the other one for the
  20.       | page. As 'forms-advanced-field-styling.xsl' is a specialization of
  21.       | 'forms-field-styling.xsl' the latter one is imported there. If you don't
  22.       | want advanced styling of widgets, change it here!
  23.       | See xsl:include as composition and xsl:import as extension/inheritance.
  24.       +-->
  25.   <xsl:include href="forms-page-styling.xsl"/>
  26.   <xsl:include href="forms-advanced-field-styling.xsl"/>
  27.  
  28.   <xsl:template match="head">
  29.     <head>
  30.       <xsl:apply-templates/>
  31.       <xsl:apply-templates select="." mode="forms-page"/>
  32.       <xsl:apply-templates select="." mode="forms-field"/>
  33.     </head>
  34.   </xsl:template>
  35.  
  36.   <xsl:template match="body">
  37.     <body>
  38.       <!--+ !!! If template with mode 'forms-page' adds text or elements
  39.           |        template with mode 'forms-field' can no longer add attributes!!!
  40.           +-->
  41.       <xsl:apply-templates select="." mode="forms-page"/>
  42.       <xsl:apply-templates select="." mode="forms-field"/>
  43.       <xsl:apply-templates/>
  44.     </body>
  45.   </xsl:template>
  46.  
  47. </xsl:stylesheet>
  48.