You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ba...@locus.apache.org on 2000/09/15 06:36:46 UTC

cvs commit: xml-cocoon/skins/xml.apache.org/stylesheets xspdoc2document.xsl

balld       00/09/14 21:36:45

  Added:       skins/xml.apache.org/stylesheets xspdoc2document.xsl
  Log:
  added xspdoc to document convertor
  
  Revision  Changes    Path
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/xspdoc2document.xsl
  
  Index: xspdoc2document.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1"
   version="1.0"
  >
  
   <xsl:template match="xspdoc:desc">
    <dt><xsl:value-of select="following-sibling::xsl:template/@match"/></dt>
    <dd><xsl:apply-templates select="text()"/></dd>
   </xsl:template>
   
   <xsl:template match="/xsl:stylesheet">
    <document>
     <header>
      <title><xsl:apply-templates select="xspdoc:title"/></title>
     </header>
     <body>
      <s2 title="Template Descriptions">
       <dl>
        <xsl:apply-templates select="xspdoc:desc"/>
       </dl>
      </s2>
     </body>
    </document>
   </xsl:template>
  
   <xsl:template match="*"/>
  
  </xsl:stylesheet>