You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/10/02 15:27:49 UTC
cvs commit: xml-cocoon2/documentation/stylesheets changes2document.xsl faq2document.xsl todo2document.xsl book2menu.xsl
cziegeler 01/10/02 06:27:49
Modified: documentation sitemap.xmap
documentation/stylesheets book2menu.xsl
Added: documentation/stylesheets changes2document.xsl
faq2document.xsl todo2document.xsl
Log:
Added handling of external entries, added separator, added todo and changes
Revision Changes Path
1.10 +9 -0 xml-cocoon2/documentation/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/documentation/sitemap.xmap,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sitemap.xmap 2001/10/02 12:21:29 1.9
+++ sitemap.xmap 2001/10/02 13:27:49 1.10
@@ -66,12 +66,21 @@
<map:match pattern="body-todo.xml">
<map:generate src="todo.xml"/>
+ <map:transform src="stylesheets/todo2document.xsl"/>
<map:transform src="stylesheets/document2html.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="body-changes.xml">
<map:generate src="changes.xml"/>
+ <map:transform src="stylesheets/changes2document.xsl"/>
+ <map:transform src="stylesheets/document2html.xsl"/>
+ <map:serialize/>
+ </map:match>
+
+ <map:match pattern="body-faq.xml">
+ <map:generate src="xdocs/faq.xml"/>
+ <map:transform src="stylesheets/faq2document.xsl"/>
<map:transform src="stylesheets/document2html.xsl"/>
<map:serialize/>
</map:match>
1.3 +24 -1 xml-cocoon2/documentation/stylesheets/book2menu.xsl
Index: book2menu.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/documentation/stylesheets/book2menu.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- book2menu.xsl 2001/10/01 15:15:14 1.2
+++ book2menu.xsl 2001/10/02 13:27:49 1.3
@@ -12,8 +12,17 @@
<xsl:template match="project">
</xsl:template>
+ <xsl:template match="menu[position()=1]">
+ <xsl:apply-templates/>
+ </xsl:template>
+
<xsl:template match="menu">
- <xsl:apply-templates/>
+ <tr>
+ <td align="left" valign="top">
+ <img border="0" height="6" hspace="0" src="images/separator.gif" vspace="0" width="120" alt="{@label}"/><br/>
+ </td>
+ </tr>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="menu-item">
@@ -21,6 +30,20 @@
<tr>
<td align="left" valign="top">
<a href="{@href}">
+ <img alt="{@label}" border="0" height="12" hspace="0" name="{@label}" vspace="0" width="120">
+ <xsl:attribute name="src">graphics/<xsl:value-of select="@label"/>-label.jpg</xsl:attribute>
+ </img>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="external">
+ <xsl:if test="not(@type) or @type!='hidden'">
+ <tr>
+ <td align="left" valign="top">
+ <a href="{@href}" target="new">
<img alt="{@label}" border="0" height="12" hspace="0" name="{@label}" vspace="0" width="120">
<xsl:attribute name="src">graphics/<xsl:value-of select="@label"/>-label.jpg</xsl:attribute>
</img>
1.1 xml-cocoon2/documentation/stylesheets/changes2document.xsl
Index: changes2document.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copyover.xsl"/>
<xsl:param name="name"/>
<xsl:variable name="bugzilla">http://nagoya.apache.org/bugzilla/show_bug.cgi?id=</xsl:variable>
<xsl:template match="changes">
<document>
<header>
<title><xsl:value-of select="@title"/></title>
</header>
<body>
<xsl:apply-templates/>
</body>
</document>
</xsl:template>
<xsl:template match="release">
<s2 title="{$name} {@version} ({@date})">
<sl>
<xsl:apply-templates/>
</sl>
</s2>
</xsl:template>
<xsl:template match="action">
<li>
<icon src="images/{@type}.jpg" alt="{@type}"/>
<xsl:apply-templates/>
<xsl:text>(</xsl:text><xsl:value-of select="@dev"/><xsl:text>)</xsl:text>
<xsl:if test="@due-to">
<xsl:text> Thanks to </xsl:text>
<link href="mailto:{@due-to-email}"><xsl:value-of select="@due-to"/></link>
<xsl:text>.</xsl:text>
</xsl:if>
<xsl:if test="@fixes-bug">
<xsl:text> Fixes </xsl:text>
<link href="{$bugzilla}{@fixes-bug}">
<xsl:text>bug </xsl:text><xsl:value-of select="@fixes-bug"/>
</link>
<xsl:text>.</xsl:text>
</xsl:if>
</li>
</xsl:template>
<xsl:template match="devs">
<!-- remove -->
</xsl:template>
</xsl:stylesheet>
1.1 xml-cocoon2/documentation/stylesheets/faq2document.xsl
Index: faq2document.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copyover.xsl"/>
<xsl:template match="faqs">
<document>
<header>
<title><xsl:value-of select="@title"/></title>
</header>
<body>
<s1 title="Questions">
<ul>
<xsl:apply-templates select="faq" mode="index"/>
</ul>
</s1>
<s1 title="Answers">
<xsl:apply-templates select="faq"/>
</s1>
</body>
</document>
</xsl:template>
<xsl:template match="faq" mode="index">
<li>
<jump anchor="faq-{position()}">
<xsl:value-of select="question"/>
</jump>
</li>
</xsl:template>
<xsl:template match="faq">
<anchor id="faq-{position()}"/>
<s2 title="{question}">
<xsl:apply-templates/>
</s2>
</xsl:template>
<xsl:template match="question">
<!-- ignored since already used -->
</xsl:template>
<xsl:template match="answer">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-cocoon2/documentation/stylesheets/todo2document.xsl
Index: todo2document.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copyover.xsl"/>
<xsl:template match="todo">
<document>
<header>
<title><xsl:value-of select="@title"/></title>
</header>
<body>
<xsl:apply-templates/>
</body>
</document>
</xsl:template>
<xsl:template match="actions">
<s2 title="{@priority}">
<sl>
<xsl:for-each select="action">
<li>
<strong><xsl:text>[</xsl:text><xsl:value-of select="@context"/><xsl:text>]</xsl:text></strong><xsl:text> </xsl:text>
<xsl:apply-templates/>
</li>
</xsl:for-each>
</sl>
</s2>
</xsl:template>
</xsl:stylesheet>
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org