You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2006/04/07 00:54:42 UTC
svn commit: r392106 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary:
resources/schema/glossary-v10.mod
resources/stylesheets/glossary-to-document.xsl
src/documentation/content/xdocs/glossary.xml
Author: crossley
Date: Thu Apr 6 15:54:41 2006
New Revision: 392106
URL: http://svn.apache.org/viewcvs?rev=392106&view=rev
Log:
Enabled optional top-level title and introduction.
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/schema/glossary-v10.mod
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/stylesheets/glossary-to-document.xsl
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/src/documentation/content/xdocs/glossary.xml
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/schema/glossary-v10.mod
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/schema/glossary-v10.mod?rev=392106&r1=392105&r2=392106&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/schema/glossary-v10.mod (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/schema/glossary-v10.mod Thu Apr 6 15:54:41 2006
@@ -37,9 +37,11 @@
<!-- Element declarations -->
<!-- =============================================================== -->
-<!ELEMENT glossary (authors?, (part)+)>
+<!ELEMENT glossary (authors?, title?, introduction?, (part)+)>
<!ATTLIST glossary %common.att;>
+<!ELEMENT introduction (%flow;)*>
+
<!ELEMENT part (title, (item | part)+) >
<!ATTLIST part %common.att;>
@@ -48,7 +50,6 @@
<!ELEMENT term (%content.mix;)*>
<!ATTLIST term %common.att;>
-
<!ELEMENT definition (%flow;)*>
<!ATTLIST definition cite IDREF #IMPLIED>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/stylesheets/glossary-to-document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/stylesheets/glossary-to-document.xsl?rev=392106&r1=392105&r2=392106&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/stylesheets/glossary-to-document.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/resources/stylesheets/glossary-to-document.xsl Thu Apr 6 15:54:41 2006
@@ -25,9 +25,22 @@
<xsl:template match="glossary">
<document>
<header>
- <title>Glossary</title>
+ <xsl:choose>
+ <xsl:when test="title">
+ <title><xsl:value-of select="title"/></title>
+ </xsl:when>
+ <xsl:otherwise>
+ <title>Glossary</title>
+ </xsl:otherwise>
+ </xsl:choose>
</header>
<body>
+ <xsl:if test="introduction">
+ <section>
+ <title>Introduction</title>
+ <xsl:apply-templates select="introduction"/>
+ </section>
+ </xsl:if>
<xsl:apply-templates select="part"/>
</body>
</document>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/src/documentation/content/xdocs/glossary.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/src/documentation/content/xdocs/glossary.xml?rev=392106&r1=392105&r2=392106&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/src/documentation/content/xdocs/glossary.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.glossary/src/documentation/content/xdocs/glossary.xml Thu Apr 6 15:54:41 2006
@@ -19,6 +19,11 @@
"glossary-v10.dtd">
<glossary>
+ <title>Demonstration glossary</title>
+ <introduction>
+ <p>This is an example for the glossary plugin of the
+ <a href="ext:forrest">Apache Forrest</a> project.</p>
+ </introduction>
<part id="c">
<title>C</title>
<item id="CSS">