]> granicus.if.org Git - docbook-dsssl/commitdiff
The sf-relid parameter is only needed if we're processing this file (VERSION processe...
authorNorman Walsh <ndw@nwalsh.com>
Thu, 29 Jan 2004 16:14:34 +0000 (16:14 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 29 Jan 2004 16:14:34 +0000 (16:14 +0000)
slides/VERSION

index ad9da11405322d9b09831f33f9df030f64cce7a9..9f71cb7b11378128b508ad7a417383ea78ba8b19 100644 (file)
@@ -38,13 +38,20 @@ V4.3CR2.
 </fm:project>
 
 <xsl:template match="/" priority="-100">
-  <xsl:if test="$sf-relid = 0">
-    <xsl:message terminate="yes">
-      <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
-    </xsl:message>
-  </xsl:if>
+  <xsl:choose>
+    <xsl:when test="xsl:*">
+      <xsl:if test="$sf-relid = 0">
+       <xsl:message terminate="yes">
+         <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
+       </xsl:message>
+      </xsl:if>
 
-  <xsl:apply-templates select="//fm:project"/>
+      <xsl:apply-templates select="//fm:project"/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-imports/>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="fm:project">