]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug where PIs match the suffix of a name instead of the whole name
authorNorman Walsh <ndw@nwalsh.com>
Sun, 15 Sep 2002 21:22:50 +0000 (21:22 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 15 Sep 2002 21:22:50 +0000 (21:22 +0000)
xsl/lib/lib.xweb

index 3be848c493e2b611d26110ce91fdd44df250834c..9ef094aa874648436a007f8361385e1ca3f95740 100644 (file)
@@ -443,8 +443,8 @@ for example), the template may silently return erroneous results.</para>
         <xsl:value-of select="$pis[$count]"/>
       </xsl:variable>
       <xsl:choose>
-        <xsl:when test="contains($pi,concat($attribute, '='))">
-          <xsl:variable name="rest" select="substring-after($pi,concat($attribute,'='))"/>
+        <xsl:when test="contains($pi,concat(' ', $attribute, '='))">
+          <xsl:variable name="rest" select="substring-after($pi,concat(' ', $attribute,'='))"/>
           <xsl:variable name="quote" select="substring($rest,1,1)"/>
           <xsl:value-of select="substring-before(substring($rest,2),$quote)"/>
         </xsl:when>