diff options
author | André Malo <nd@apache.org> | 2014-02-02 19:52:16 +0000 |
---|---|---|
committer | André Malo <nd@apache.org> | 2014-02-02 19:52:16 +0000 |
commit | 826f688bd0b7e4fe252dcb5b5f88e68f5c04e5fc (patch) | |
tree | 447eb5c836ebbfa7c341174b41b14240b6faf46e | |
parent | 125338e661ca7a1c3ce05152f7cea137f2dcd555 (diff) | |
download | httpd-826f688bd0b7e4fe252dcb5b5f88e68f5c04e5fc.tar.gz |
prepare for upcoming xalan update
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@1563695 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | docs/manual/style/xsl/quickreference.xsl | 52 |
1 files changed, 33 insertions, 19 deletions
diff --git a/docs/manual/style/xsl/quickreference.xsl b/docs/manual/style/xsl/quickreference.xsl index e6c1524501..76ed49339f 100644 --- a/docs/manual/style/xsl/quickreference.xsl +++ b/docs/manual/style/xsl/quickreference.xsl @@ -278,28 +278,36 @@ <xsl:apply-templates select="$directive/syntax" /> </a> </td> - <td> - <!-- if the default value contains (at least) one <br />, --> - <!-- this probably means that a short explanation follows --> - <!-- the actual default value. We cut off the string --> - <!-- after the <br /> so it will not be shown here. --> - <!-- (add the + character instead) --> - <xsl:variable name="default"> - <xsl:choose> - <xsl:when test="count($directive/default[count(br) > 0]) - > 0"> - <xsl:value-of - select="$directive/default/child::node() - [count(preceding-sibling::*) = 0]" /> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$directive/default"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> + <!-- if the default value contains (at least) one <br />, --> + <!-- this probably means that a short explanation follows --> + <!-- the actual default value. We cut off the string --> + <!-- after the <br /> so it will not be shown here. --> + <!-- (add the + character instead) --> + <xsl:variable name="default"> + <xsl:choose> + <xsl:when test="count($directive/default[count(br) > 0]) + > 0"> + <xsl:value-of + select="$directive/default/child::node() + [count(preceding-sibling::*) = 0]" /> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$directive/default"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <!-- Now. If the default output is empty, the xslt processor emits --> + <!-- <td />. In order to avoid this, we simply emit <td></td> --> + <!-- by ourselves. Crap. --> + <xsl:choose> + <xsl:when test="not(substring(substring-after( + concat($default, ' '), name),1,20) = '')"> + <td> <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($directive/default[count(br) > 0]) @@ -307,6 +315,12 @@ <xsl:text> +</xsl:text> </xsl:if> </td> + </xsl:when> + <xsl:otherwise> + <xsl:text disable-output-escaping="yes"><td></td></xsl:text> + </xsl:otherwise> + </xsl:choose> + <td> <xsl:if test="$directive/contextlist/context [normalize-space(.)='server config']"> |