]> granicus.if.org Git - docbook-dsssl/commitdiff
ends-with() isn't an XSLT 1.0 function
authorNorman Walsh <ndw@nwalsh.com>
Sat, 29 Oct 2005 17:22:34 +0000 (17:22 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 29 Oct 2005 17:22:34 +0000 (17:22 +0000)
xsl/html/html.xsl

index 5c2d2fe4dac82470185808a53e60c6fb6bd7be37..a32a632dede116189ceb1ef032157a0649380f42 100644 (file)
        <xsl:when test="title">
          <xsl:value-of select="title[1]"/>
        </xsl:when>
-       <xsl:when test="ends-with(local-name(*[1]),'info') and *[1]/title">
+       <xsl:when test="substring(local-name(*[1]),
+                                 string-length(local-name(*[1])-3) = 'info')
+                       and *[1]/title">
          <xsl:value-of select="*[1]/title[1]"/>
        </xsl:when>
        <xsl:when test="refmeta/refentrytitle">