diff --git a/modules/global-elements.xml b/modules/global-elements.xml
index 0f5be96..27f6507 100644
--- a/modules/global-elements.xml
+++ b/modules/global-elements.xml
@@ -228,5 +228,17 @@
 		</common>
 	</template>
 
+	<!--
+		Sequence number for the document. Obviously there must be a sequence-number attribute in the document element for this to work!
+	-->
+	<template name="SequenceNumber" match="SequenceNumber">
+		<common>
+			<xsl:if test="not( /document/@sequence-number )">
+				<xsl:message terminate="yes">The sequence number for this document has not been specified (use /document/@sequence-number).</xsl:message>
+			</xsl:if>
+		    <xsl:value-of select="/document/@sequence-number" />
+		</common>
+	</template>
+
 
 </stylesheet>