avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon/tools cocoon2anakia.xsl
Date Sun, 16 Jun 2002 12:15:16 GMT
donaldp     2002/06/16 05:15:16

  Added:       tools    cocoon2anakia.xsl
  Add in basic stylesheet that converts documents in the default cocoon format to the default
anakia format.
  Revision  Changes    Path
  1.1                  jakarta-avalon/tools/cocoon2anakia.xsl
  Index: cocoon2anakia.xsl
  <?xml version="1.0"?>
      <xsl:output method="xml" indent="no"/>
      <!-- strip footer -->
      <xsl:template match="footer"/>
      <!-- header to properties -->
      <xsl:template match="header">
      <!-- strip authors section -->
      <xsl:template match="warn"/>
      <!-- strip authors section -->
      <xsl:template match="authors">
      <!-- person to author -->
      <xsl:template match="person">
          <author email="{@email}">
              <xsl:value-of select="@name"/>
      <!-- update s1 section -->
      <xsl:template match="s1">
          <section name="{@title}">
      <!-- update s1 section -->
      <xsl:template match="s2">
          <subsection name="{@title}">
      <xsl:template match="node()|@*" priority="-1">
              <xsl:apply-templates select="node()|@*"/>

To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>

View raw message