You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by ab...@locus.apache.org on 2000/05/24 23:15:54 UTC

cvs commit: xml-stylebook/styles/apachexml/stylesheets document2html.xsl book2project.xsl

abagchi     00/05/24 14:15:54

  Modified:    styles/apachexml/stylesheets document2html.xsl
                        book2project.xsl
  Log:
  Added container tag
  
  Revision  Changes    Path
  1.8       +1 -1      xml-stylebook/styles/apachexml/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-stylebook/styles/apachexml/stylesheets/document2html.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- document2html.xsl	2000/03/06 13:23:10	1.7
  +++ document2html.xsl	2000/05/24 21:15:52	1.8
  @@ -96,7 +96,7 @@
       <xsl:apply-templates/>
     </xsl:template>
   
  -  <xsl:template match="document|faqs|changes|group">
  +  <xsl:template match="document|faqs|changes|group|container">
       <xsl:if test="@id=$id">
         <img src="graphics/{@id}-label-1.jpg" width="120" height="12" hspace="0" vspace="0" border="0" alt="{@label}"/>
       </xsl:if>
  
  
  
  1.5       +32 -0     xml-stylebook/styles/apachexml/stylesheets/book2project.xsl
  
  Index: book2project.xsl
  ===================================================================
  RCS file: /home/cvs/xml-stylebook/styles/apachexml/stylesheets/book2project.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- book2project.xsl	2000/03/06 13:23:09	1.4
  +++ book2project.xsl	2000/05/24 21:15:52	1.5
  @@ -169,6 +169,38 @@
   
     </xsl:template>
   
  +   <xsl:template match="container">
  +
  +	<xsl:apply-templates/>
  +
  +   <process source="{@source}" producer="parser">
  +      <processor name="xslt">
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/any2project.xsl"/>
  +      </processor>
  +    </process>    
  +
  +
  +    <xsl:call-template name="header">
  +      <xsl:with-param name="id"     select="@id"/>
  +      <xsl:with-param name="source" select="@source"/>
  +      <xsl:with-param name="label"  select="@label"/>
  +    </xsl:call-template>
  +
  +    <xsl:call-template name="labels">
  +      <xsl:with-param name="id" select="@id"/>
  +      <xsl:with-param name="label" select="@label"/>
  +    </xsl:call-template>
  +
  +    
  +    <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
  +      <processor name="xslt">
  +        <parameter name="id" value="{@id}"/>
  +        <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
  +      </processor>
  +    </create>
  +
  +  </xsl:template>
  +
     <xsl:template match="entry">
   
       <process source="{@source}" producer="parser">