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 / proper.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.6 KB  |  55 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. <!-- 
  19.      Author: Michael Gerzabek, michael.gerzabek@at.efp.cc, EFP Consulting ∩┐╜sterreich
  20.      @version CVS $Id: proper.xsl,v 1.5 2004/04/05 12:25:32 antonio Exp $
  21. -->
  22.  
  23. <xsl:stylesheet 
  24.     version="1.0" 
  25.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  26.     xmlns:rfc="http://apache.org/cocoon/Web3-Rfc/1.0">
  27.     
  28.     <xsl:template match="rfc:export">
  29.         <export>
  30.             <xsl:apply-templates/>
  31.         </export>
  32.     </xsl:template>
  33.     <xsl:template match="rfc:tables">
  34.         <tables>
  35.             <xsl:apply-templates/>
  36.         </tables>
  37.     </xsl:template>
  38.     <xsl:template match="rfc:row">
  39.         <row>
  40.             <xsl:attribute name="id"><xsl:number/></xsl:attribute>
  41.             <xsl:apply-templates/>
  42.         </row>
  43.     </xsl:template>
  44.     <xsl:template match="rfc:*">
  45.         <xsl:element name="{@rfc:name}">
  46.             <xsl:apply-templates/>
  47.         </xsl:element>
  48.     </xsl:template>
  49.     <xsl:template match="@*|*|text()|processing-instruction()" priority="-1">
  50.         <xsl:copy>
  51.             <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
  52.         </xsl:copy>
  53.     </xsl:template>
  54. </xsl:stylesheet>
  55.