]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #1539010, fix xml.base.dirs template to stop recursing
authorBob Stayton <bobs@sagehill.net>
Sat, 12 Aug 2006 07:38:13 +0000 (07:38 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 12 Aug 2006 07:38:13 +0000 (07:38 +0000)
if hit an absolute uri.

xsl/common/common.xsl

index aad21a426608a76018b3d023a8d1ac9b38df9ce4..ee8b869076657494cd0a284d854dbe7f9d5ac462 100644 (file)
@@ -1755,8 +1755,10 @@ node location.</para>
 <xsl:template name="xml.base.dirs">
   <xsl:param name="base.elem" select="NONODE"/>
 
-  <!-- Recursively resolve xml:base attributes -->
-  <xsl:if test="$base.elem/ancestor::*[@xml:base != '']">
+  <!-- Recursively resolve xml:base attributes, up to a 
+       full path with : in uri -->
+  <xsl:if test="$base.elem/ancestor::*[@xml:base != ''] and
+                not(contains($base.elem/@xml:base, ':'))">
     <xsl:call-template name="xml.base.dirs">
       <xsl:with-param name="base.elem" 
                       select="$base.elem/ancestor::*[@xml:base != ''][1]"/>