xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-stylebook/styles/apachexml/stylesheets book2project.xsl document2html.xsl
Date Wed, 01 Dec 1999 23:04:32 GMT
pier        99/12/01 15:04:32

  Modified:    styles/apachexml/stylesheets book2project.xsl
                        document2html.xsl
  Log:
  Added handling of <external> from book.dtd
  
  Revision  Changes    Path
  1.3       +48 -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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- book2project.xsl	1999/12/01 21:09:23	1.2
  +++ book2project.xsl	1999/12/01 23:04:32	1.3
  @@ -56,8 +56,36 @@
       </create>
     </xsl:template>
   
  +  <xsl:template match="hidden">
  +
  +    <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>
  +
  +    <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="faqs">
   
  +    <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"/>
  @@ -83,6 +111,12 @@
   
     <xsl:template match="changes">
   
  +    <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"/>
  @@ -137,6 +171,12 @@
   
     <xsl:template match="entry">
   
  +    <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"/>
  @@ -155,6 +195,14 @@
   
     </xsl:template>
   
  +  <xsl:template match="external">
  +
  +    <xsl:call-template name="labels">
  +      <xsl:with-param name="id" select="concat('ext-',position())"/>
  +      <xsl:with-param name="label" select="@label"/>
  +    </xsl:call-template>
  +
  +  </xsl:template>
   <!-- ********************************************************************** -->
   <!-- NAMED TEMPLATES -->
   <!-- ********************************************************************** -->
  
  
  
  1.3       +9 -0      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- document2html.xsl	1999/12/01 21:09:23	1.2
  +++ document2html.xsl	1999/12/01 23:04:32	1.3
  @@ -109,6 +109,15 @@
       <br/>
     </xsl:template>
   
  +  <xsl:template match="external">
  +    <xsl:variable name="extid" select="concat('ext-',position())"/>
  +    <a href="{@href}" onMouseOver="rolloverOn('side-{$extid}');" onMouseOut="rolloverOff('side-{$extid}');">
  +      <img onLoad="rolloverLoad('side-{$extid}','graphics/{$extid}-label-2.jpg','graphics/{$extid}-label-3.jpg');"
  +           name="side-{$extid}" src="graphics/{$extid}-label-3.jpg" width="120" height="12"
hspace="0" vspace="0" border="0" alt="{@label}"/>
  +    </a>
  +    <br/>
  +  </xsl:template>
  +
     <xsl:template match="separator">
       <img src="resources/separator.gif" width="120" height="6" hspace="0" vspace="0"
border="0"/><br/>
     </xsl:template>
  
  
  

Mime
View raw message