You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ke...@apache.org on 2002/12/25 03:50:09 UTC
cvs commit: httpd-2.0/docs/manual/style/xsl synopsis.xsl quickreference.xsl
kess 2002/12/24 18:50:09
Modified: docs/manual/style modulesynopsis.dtd
docs/manual/style/xsl synopsis.xsl quickreference.xsl
Log:
allow <br/> within <default> to increase readability for directives
with OS dependent defaults
thanks to nd for his help with xsl
Revision Changes Path
1.15 +1 -1 httpd-2.0/docs/manual/style/modulesynopsis.dtd
Index: modulesynopsis.dtd
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/modulesynopsis.dtd,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- modulesynopsis.dtd 16 Oct 2002 06:45:21 -0000 1.14
+++ modulesynopsis.dtd 25 Dec 2002 02:50:09 -0000 1.15
@@ -30,7 +30,7 @@
<!ELEMENT syntax %Inline;>
-<!ELEMENT default (#PCDATA)>
+<!ELEMENT default (#PCDATA | br)*>
<!ELEMENT contextlist (context+)+>
1.8 +16 -16 httpd-2.0/docs/manual/style/xsl/synopsis.xsl
Index: synopsis.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/synopsis.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- synopsis.xsl 22 Dec 2002 22:45:38 -0000 1.7
+++ synopsis.xsl 25 Dec 2002 02:50:09 -0000 1.8
@@ -36,7 +36,7 @@
<xsl:when test="status='Core'">
<xsl:value-of select="$messages/message[@name='apachecore']"/>
</xsl:when>
-
+
<xsl:when test="name='mpm_common'">
<xsl:value-of select="$messages/message[@name='apachempmcommon']"/>
</xsl:when>
@@ -113,7 +113,7 @@
<a href="module-dict.html#ModuleIdentifier">
<xsl:value-of select="$messages/message[@name='moduleidentifier']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<xsl:value-of select="identifier"/>
@@ -131,7 +131,7 @@
<a href="module-dict.html#SourceFile">
<xsl:value-of select="$messages/message[@name='sourcefile']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<xsl:value-of select="sourcefile"/>
@@ -270,7 +270,7 @@
<h3>
<xsl:value-of select="$messages/message[@name='seealso']"/>
</h3>
-
+
<xsl:text>
</xsl:text> <!-- insert line break -->
@@ -388,7 +388,7 @@
<a href="directive-dict.html#Syntax">
<xsl:value-of select="$messages/message[@name='syntax']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<code>
@@ -407,11 +407,11 @@
<a href="directive-dict.html#Default">
<xsl:value-of select="$messages/message[@name='default']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<code>
- <xsl:value-of select="default"/>
+ <xsl:apply-templates select="default"/>
</code>
</td>
</tr>
@@ -425,7 +425,7 @@
<a href="directive-dict.html#Context">
<xsl:value-of select="$messages/message[@name='context']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<xsl:apply-templates select="contextlist"/>
@@ -442,7 +442,7 @@
<a href="directive-dict.html#Override">
<xsl:value-of select="$messages/message[@name='override']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<xsl:value-of select="override"/>
@@ -458,7 +458,7 @@
<a href="directive-dict.html#Status">
<xsl:value-of select="$messages/message[@name='status']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<xsl:value-of select="../status"/>
@@ -473,7 +473,7 @@
<a href="directive-dict.html#Module">
<xsl:value-of select="$messages/message[@name='module']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<xsl:if test="modulelist">
@@ -496,7 +496,7 @@
<a href="directive-dict.html#Compatibility">
<xsl:value-of select="$messages/message[@name='compatibility']"/>
<xsl:text>:</xsl:text>
- </a>
+ </a>
</th>
<td>
<xsl:value-of select="compatibility"/>
@@ -559,7 +559,7 @@
<!-- -->
<xsl:template match="contextlist">
<xsl:apply-templates select="context"/>
- </xsl:template>
+ </xsl:template>
<!-- /contextlist -->
@@ -592,7 +592,7 @@
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
- </xsl:template>
+ </xsl:template>
<!-- /context -->
@@ -607,7 +607,7 @@
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:for-each>
- </xsl:template>
+ </xsl:template>
<!-- /modulelist -->
-</xsl:stylesheet>
+</xsl:stylesheet>
\ No newline at end of file
1.9 +17 -5 httpd-2.0/docs/manual/style/xsl/quickreference.xsl
Index: quickreference.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/quickreference.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- quickreference.xsl 11 Dec 2002 20:33:02 -0000 1.8
+++ quickreference.xsl 25 Dec 2002 02:50:09 -0000 1.9
@@ -49,7 +49,7 @@
<xsl:with-param name="directives" select="$directives"/>
</xsl:call-template>
</xsl:variable>
-
+
<table id="legend">
<xsl:text>
@@ -110,7 +110,7 @@
</body>
</html>
- </xsl:template>
+ </xsl:template>
<!-- -->
@@ -145,8 +145,20 @@
</td>
<td>
- <xsl:value-of select="substring(substring-after(concat(default,' '),name),1,20)"/>
- <xsl:if test="string-length(substring-after(concat(default,' '),name)) > 20">
+ <xsl:variable name="default">
+ <xsl:choose>
+ <xsl:when test="count(default[count(br) > 0]) > 0">
+ <xsl:value-of select="default/child::node()[count(preceding-sibling::*) = 0]"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="default"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:value-of select="substring(substring-after(concat($default,' '),name),1,20)"/>
+ <xsl:if test="string-length(substring-after(concat($default,' '),name)) > 20
+ or count(default[count(br) > 0]) > 0">
<xsl:text> +</xsl:text>
</xsl:if>
</td>
@@ -202,4 +214,4 @@
</xsl:template>
<!-- /reference-of-letter -->
-</xsl:stylesheet>
+</xsl:stylesheet>
\ No newline at end of file