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 / core.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.0 KB  |  57 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  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" xmlns:osm="http://osmosis.gr/osml/1.0">
  18.   <xsl:output method="html" version="1.0" encoding="utf-8" indent="yes" omit-xml-declaration="no"/>
  19.   <!-- if you create your custom xml - xsl element add here refernce to your xsl -->
  20.  
  21.   <!-- add elements with custom transformation instructions
  22.     in this case some osm: elements are transformed to xhtml
  23.    -->
  24.   <xsl:include href="../plugins/list.xsl"/>
  25.   <xsl:include href="../plugins/custombutton.xsl"/>
  26.   <xsl:include href="../plugins/custom.xsl"/>
  27.  
  28.   <xsl:template match="osm:site">
  29.     <xsl:apply-templates/>
  30.   </xsl:template>
  31.  
  32.   <!-- we dont need (for the momend special tag to include xhtml code.
  33.         Everything else, that dont belong in any specific name space is xhtml. Those elements jare coped.
  34.         But osm:xhtml is used just to group xhtml framgents.
  35.        -->
  36.   <xsl:template match="osm:xhtml">
  37.     <xsl:apply-templates/>
  38.   </xsl:template>
  39.  
  40.   <xsl:template match="osm:block">
  41.     <xsl:apply-templates/>
  42.   </xsl:template>
  43.  
  44.   <!-- in case a osm:pageTitle element exist don't try to transform it
  45.     fixme: this will be used to create each page title
  46.    -->
  47.   <xsl:template match="osm:pageTitle">
  48.     
  49.   </xsl:template>
  50.   <xsl:template match="node()|@*" priority="-1">
  51.     <xsl:copy>
  52.       <xsl:apply-templates select="@*"/>
  53.       <xsl:apply-templates/>
  54.     </xsl:copy>
  55.   </xsl:template>
  56. </xsl:stylesheet>
  57.