]> granicus.if.org Git - apache/commitdiff
add sanity check
authorAndré Malo <nd@apache.org>
Fri, 10 Dec 2010 23:37:46 +0000 (23:37 +0000)
committerAndré Malo <nd@apache.org>
Fri, 10 Dec 2010 23:37:46 +0000 (23:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1044538 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index 90269eaafa5cd238d0a5805f9e7b2432de5151d0..52e3044830f70ce00494ce1ca14f212eb96c86d8 100644 (file)
 <!-- 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                             -->
 <!-- #################################################################### -->