httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject svn commit: r1044538 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Date Fri, 10 Dec 2010 23:37:46 GMT
Author: nd
Date: Fri Dec 10 23:37:46 2010
New Revision: 1044538

URL: http://svn.apache.org/viewvc?rev=1044538&view=rev
Log:
add sanity check

Modified:
    httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Modified: httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/common.xsl?rev=1044538&r1=1044537&r2=1044538&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl Fri Dec 10 23:37:46 2010
@@ -78,6 +78,17 @@
 <!-- it may be desired to open external targets in a new window -->
 <xsl:variable name="ext-target" select="boolean($is-chm)" />
 
+<xsl:template match="/">
+    <xsl:if test="not($metafile/@reference)">
+        <xsl:message terminate="yes">
+            Invalid metafile. Probably your build system is not up-to-date.
+            Get a current version and try again.
+        </xsl:message>
+    </xsl:if>
+    <xsl:apply-templates />
+</xsl:template>
+
+
 <!-- #################################################################### -->
 <!-- Utility templates for constructing pages                             -->
 <!-- #################################################################### -->



Mime
View raw message