]> granicus.if.org Git - docbook-dsssl/commitdiff
Change syntax for selecting @its:* attributes so it works
authorBob Stayton <bobs@sagehill.net>
Mon, 13 May 2013 21:15:47 +0000 (21:15 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 13 May 2013 21:15:47 +0000 (21:15 +0000)
in xsltproc (which should work with the original, but doesn't).

xsl/html/its.xsl

index 4f507d6527d2d957010388f4a748a96ae7a35ee1..a95dfeae2d3998581a35834f345a86f92a69b709 100644 (file)
@@ -34,7 +34,7 @@
   <xsl:choose>\r
     <!-- Handle inheritance; especially necessary for chunking -->\r
     <xsl:when test="$inherit = 1">\r
-      <xsl:variable name="attrs" select="ancestor-or-self::*/@its:*"/>\r
+      <xsl:variable name="attrs" select="ancestor-or-self::*/@*[namespace-uri() = 'http://www.w3.org/2005/11/its']"/>\r
       <xsl:for-each select="$attrs">\r
        <xsl:variable name="name" select="local-name(.)"/>\r
        <xsl:if test="not(..//*/@*[local-name(.) = $name and (count(. | $attrs) = 1)])">\r
@@ -43,7 +43,7 @@
       </xsl:for-each>\r
     </xsl:when>\r
     <xsl:otherwise>\r
-      <xsl:apply-templates select="@its:*"/>\r
+      <xsl:apply-templates select="@*[namespace-uri() = 'http://www.w3.org/2005/11/its']"/>\r
     </xsl:otherwise>\r
   </xsl:choose>\r
 </xsl:template>\r