You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ch...@apache.org on 2003/09/03 13:01:41 UTC
cvs commit: xml-forrest/src/resources/skins/common/xslt/html document2html.xsl
cheche 2003/09/03 04:01:41
Modified: . status.xml
src/resources/skins/common/xslt/html document2html.xsl
Log:
Support for version, type and notice on html format.
Submitted by: Eirik Bj�rsn�s bjorsnos@stud.ntnu.no
Revision Changes Path
1.198 +5 -1 xml-forrest/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/xml-forrest/status.xml,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -r1.197 -r1.198
--- status.xml 2 Sep 2003 22:38:08 -0000 1.197
+++ status.xml 3 Sep 2003 11:01:41 -0000 1.198
@@ -25,6 +25,10 @@
<changes>
<release version="0.5-dev" date="unreleased">
+ <action dev="JJP" type="fix" context="skins"
+ due-to="Eirik Bjørsnøs" due-to-email="bjorsnos@stud.ntnu.no" >
+ Support for version, type and notice on html format.
+ </action>
<action dev="JJP" type="fix" context="skins" fixes-bug="FOR-34">
Style information on the common skin.
</action>
@@ -87,7 +91,7 @@
Remove indent attr from the xsl:output as it is define on serializer.
Move xsl:output for *2document.xsl to "xml-document" serializer.
</action>
- <action dev="JJP" type="fix" context="skins"
+ <action dev="JJP" type="fix" context="skins" fixes-bug="FOR-51"
due-to="Eirik Bjørsnøs" due-to-email="bjorsnos@stud.ntnu.no" >
abstract element was ignored for html output.
</action>
1.23 +47 -1 xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- document2html.xsl 30 Aug 2003 05:26:48 -0000 1.22
+++ document2html.xsl 3 Sep 2003 11:01:41 -0000 1.23
@@ -94,6 +94,9 @@
</font>
</p>
</xsl:if>
+ <xsl:apply-templates select="header/version"/>
+ <xsl:apply-templates select="header/type"/>
+ <xsl:apply-templates select="header/notice"/>
<xsl:apply-templates select="header/abstract"/>
<xsl:apply-templates select="body"/>
</div>
@@ -221,6 +224,14 @@
</div>
</xsl:template>
+ <xsl:template match="notice">
+ <div class="notice">
+ <!-- FIXME: i18n Transformer here -->
+ <xsl:text>Notice: </xsl:text>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:template>
+
<xsl:template match="link">
<xsl:apply-templates select="@id"/>
<xsl:choose>
@@ -360,6 +371,41 @@
</xsl:if>
</xsl:template>
+ <xsl:template match="version">
+ <p class="version">
+ <!-- FIXME: i18n Transformer here -->
+ <xsl:text>Version: </xsl:text>
+ <xsl:apply-templates select="@major"/>
+ <xsl:apply-templates select="@minor"/>
+ <xsl:apply-templates select="@fix"/>
+ <xsl:apply-templates select="@tag"/>
+ </p>
+ </xsl:template>
+
+ <xsl:template match="@major">
+ <xsl:value-of select="."/>
+ </xsl:template>
+
+ <xsl:template match="@minor">
+ <xsl:value-of select="concat('.',.)"/>
+ </xsl:template>
+
+ <xsl:template match="@fix">
+ <xsl:value-of select="concat('.',.)"/>
+ </xsl:template>
+
+ <xsl:template match="@tag">
+ <xsl:value-of select="concat('-',.)"/>
+ </xsl:template>
+
+ <xsl:template match="type">
+ <p class="type">
+ <!-- FIXME: i18n Transformer here -->
+ <xsl:text>Type: </xsl:text>
+ <xsl:value-of select="."/>
+ </p>
+ </xsl:template>
+
<xsl:template match="abstract">
<p>
<xsl:apply-templates/>