Commit 2d8ce5a0 authored by Andre Malo's avatar Andre Malo
Browse files

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
parent 85546d5a
Loading
Loading
Loading
Loading
+33 −19
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@
                <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      -->
@@ -298,8 +298,16 @@
            </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)) &gt; 20
                          or count($directive/default[count(br) &gt; 0])
@@ -307,6 +315,12 @@
                <xsl:text> +</xsl:text>
            </xsl:if>
        </td>
        </xsl:when>
        <xsl:otherwise>
            <xsl:text disable-output-escaping="yes">&lt;td>&lt;/td></xsl:text>
        </xsl:otherwise>
        </xsl:choose>

        <td>
            <xsl:if test="$directive/contextlist/context
                          [normalize-space(.)='server config']">