forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Koberg <...@koberg.com>
Subject presentaion for forrest -> was presentation -> was - stevenn@apache.org commit
Date Wed, 10 Apr 2002 01:05:03 GMT
Hi,

I started modifying the XSLTs (see below) in the email here (in other 
words, not tested). The way I am laying it out would rely on CSS. Is 
this something you want to do? I can complete the rest of the XSLTs and 
give you a CSS (where can I get sample XML?).

Is the there a screen-shot  for the layout (is there a layout?). Are you 
guys looking for a layout?  I can't help with the hard-core coding, but 
I can defintely help out with the presentation side.

best,
-Rob

stevenn@apache.org wrote:

>
>  Index: book2menu.xsl
>  ===================================================================
>  <?xml version='1.0'?>
>  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>  
>  <xsl:template match="book">
>    <div class="menu">
>      <ul>
>        <xsl:apply-templates select="menu"/>
>      </ul>
>    </div>
>  </xsl:template>
>  
>
<xsl:template match="menu">
   <li>
      <xsl:value-of select="@label"/>
      <xsl:apply-templates select="menu-item | external"/>
   </li>
</xsl:template>


<xsl:template match="menu-item | external">
   <ul>
     <xsl:apply-templates select="menu-item | external"/>
   </ul>
</xsl:template>

>
>  
>  <xsl:template match="menu-item[@type='hidden']"/>
>  <xsl:template match="external[@type='hidden']"/>
>  
>  <xsl:template match="menu-item | external">
>    <li>
>      <a href="{@href}"><xsl:value-of select="@label"/></a>
>    </li>
>  </xsl:template>
>  
>  </xsl:stylesheet>
>  
>  
>  1.1                  xml-forrest/src/documentation/skins/forrest-site/xslt/html/document2html.xsl
>  
>  Index: document2html.xsl
>  ===================================================================
>  <?xml version="1.0"?>
>  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>  
>
<xsl:template match="document">

   <div class="content">
      <xsl:apply-templates/>
   </div>

</xsl:template>

<xsl:template match="header">
   
   <span class="header">
      <xsl:apply-templates/>
      <a href="#" class="dida">
         <img src="images/printer.gif"/>
         <br/>
         printer-friendly
         <br/>
         version
      </a>
   </span>

</xsl:template>


<xsl:template match="title">
   
   <span class="title">
      <xsl:apply-templates/>
   </span>

</xsl:template>

<xsl:template match="authors">
   
   <p class="authors">
      <xsl:apply-templates/>
   </p>

</xsl:template>

<xsl:template match="person">
   
   <xsl:choose>
      <xsl:when test="position()=1">
         <xsl:text>by </xsl:text>
      </xsl:when>
      <xsl:otherwise>
         <xsl:text>, </xsl:text>
      </xsl:otherwise>
   </xsl:choose>
   <xsl:value-of select="@name"/>

</xsl:template>

>
>  
>    <xsl:template match="body">
>      <xsl:apply-templates/>
>    </xsl:template>
>  
>    <xsl:template match="s1">
>      <h3>
>        <xsl:value-of select="@title"/>
>      </h3>
>      <xsl:apply-templates/>
>    </xsl:template>
>  
>    <xsl:template match="s2">
>      <h4>
>        <xsl:value-of select="@title"/>
>      </h4>
>      <xsl:apply-templates/>
>    </xsl:template>
>  
>    <xsl:template match="link">
>      <a href="{@href}"><xsl:apply-templates/></a>
>    </xsl:template>
>  
>    <xsl:template match="node()|@*" priority="-1">
>      <xsl:copy>
>        <xsl:apply-templates select="@*"/>
>        <xsl:apply-templates/>
>      </xsl:copy>
>    </xsl:template>
>  
>  </xsl:stylesheet>
>  
>  <snip-last-xslt/>
>





Mime
View raw message