Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Forrest: Dev

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

 

 

Forrest dev RSS feed   Index | Next | Previous | View Threaded


rob at koberg

Apr 9, 2002, 5:05 PM

Post #1 of 3 (91 views)
Permalink
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 [at] apache 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/>
>


stevenn at outerthought

Apr 9, 2002, 11:20 PM

Post #2 of 3 (86 views)
Permalink
RE: presentaion for forrest -> was presentation -> was - stevenn@apache.org commit [In reply to]

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>


rob at koberg

Apr 10, 2002, 3:01 AM

Post #3 of 3 (86 views)
Permalink
Re: presentaion for forrest -> was presentation -> was - stevenn@apache.org commit [In reply to]

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

Forrest dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.