You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2010/12/11 00:37:46 UTC
svn commit: r1044538 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
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 -->
<!-- #################################################################### -->