xsl-list
[Top] [All Lists]

Re: [xsl] template matching with modes, not seeing what I expect

2020-03-15 13:21:29
<xsl:choose>
      <xsl:when test="not(section)"><xsl:text>none</xsl:text></xsl:when>

if you get past that not(section) is false so  the following test is
   not(false() and not(title))
so it is always true

      <xsl:when test="not(not(section) and
not(title))"><xsl:text>all</xsl:text></xsl:when>

so you can not reach here
      <xsl:otherwise><xsl:text>mixed</xsl:text></xsl:otherwise>
    </xsl:choose>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>