]> granicus.if.org Git - apache/commitdiff
Add some additional tests to report badly formatted synopsis.
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 15 Feb 2019 07:25:54 +0000 (07:25 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 15 Feb 2019 07:25:54 +0000 (07:25 +0000)
Comment-out these tests because of the noise it generates, but leave it there, if useful for s.o.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1853615 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/quickreference.xsl

index c6c9afc735b1d47898c0cbb13f6da7e5c928760e..340f5eb54e32d0b8375b725def8d2792c09d7215 100644 (file)
             </xsl:choose>
         </xsl:variable>
 
-        <!-- Check if the default string really starts with the directive -->
-        <!-- name, in order to avoid typo, or unexpected formatting.      -->
-        <!-- Below, we skip the directive name, so, for it to work, it    -->
-        <!-- must be there.                                               -->
+        <!-- Check if the syntax and the default strings really start with -->
+        <!-- the directive name, in order to avoid typo, or unexpected     -->
+        <!-- formatting.                                                   -->
+        <!-- Un-comment these lines if you want to perform this additional -->
+        <!-- tests.  They are not run by default, because of the false     -->
+        <!-- positives and the noise they generate.                        -->
+<!--
+        <xsl:if test="string-length(syntax) = 0 or
+                         (syntax != name and
+                          substring-before(syntax, ' ') != name and
+                          substring-before(syntax, ' ') != concat ('&lt;', name) and
+                          substring-before(syntax, ' ') != concat ('&lt;', name, '&gt;')
+                         )" >
+                      
+            <xsl:message>Spurious syntax string for <xsl:value-of select="name"/>: '<xsl:value-of select="syntax"/>'</xsl:message>
+        </xsl:if>
+
         <xsl:if test="string-length($default) &gt; 0
                       and substring-before($default, ' ') != name">
-            <xsl:message>Spurious default string: <xsl:value-of select="$default"/> (Directive <xsl:value-of select="name"/> omitted or misspelled)</xsl:message>
+            <xsl:message>Spurious default string for <xsl:value-of select="name"/>: <xsl:value-of select="$default"/></xsl:message>
         </xsl:if>
+-->
 
         <!-- Now. If the default output is empty, the xslt processor emits -->
         <!-- <td />. In order to avoid this, we simply emit <td></td>      -->