You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Robert Koberg <ro...@koberg.com> on 2002/04/10 03:05:03 UTC

presentaion for forrest -> was presentation -> was - stevenn@apache.org commit

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/>
>





Re: presentaion for forrest -> was presentation -> was - stevenn@apache.org commit

Posted by Robert Koberg <ro...@koberg.com>.
Steven Noels wrote:

>Robert,
>
>in all cases, please don't start from the commit mail messages, but from
>CVS... get a local copy and start working on it, you can create patches
>using "cvs diff -u" and submit these afterwards
>(http://www.cvshome.org/docs/manual/cvs_16.html#SEC129).
>
>I see you are using a Mac (OSX) - I'm a Linux/Windows user so I can't
>help you out setting up the required working environment.
>
>>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.
>>
>
>Layout templates are located in src/resources/layout/xml.apache.org
>
></Steven>
>
When i rysync cvs.apache.org i don't see a forrest or forrest-dev. Where 
is the repository? I am grabbing xml-cocoon2 now  - perhaps it is in there?

-Rob


RE: presentaion for forrest -> was presentation -> was - stevenn@apache.org commit

Posted by Steven Noels <st...@outerthought.org>.
Robert,

in all cases, please don't start from the commit mail messages, but from
CVS... get a local copy and start working on it, you can create patches
using "cvs diff -u" and submit these afterwards
(http://www.cvshome.org/docs/manual/cvs_16.html#SEC129).

I see you are using a Mac (OSX) - I'm a Linux/Windows user so I can't
help you out setting up the required working environment.

> 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.

Layout templates are located in src/resources/layout/xml.apache.org

</Steven>