xsl-list
[Top] [All Lists]

Re: [xsl] Grouping in match patterns

2020-07-14 11:41:32
Am 14.07.2020 um 18:34 schrieb Norman Tovey-Walsh ndw(_at_)nwalsh(_dot_)com:
It seems the spec indeed allows this.
Furthermore, Saxon-JS 2 doesn't complain:

Saxon 10.1 does:

Yes, Wendell kind of already said that Saxon gives an error.

The closest test in the test suite I could dig up is
https://github.com/w3c/xslt30-test/blob/master/tests/attr/match/match-082a.xsl,
it solely uses a parenthesized union pattern

    <!--
        Purpose: Parentheses in patterns become legal in XSLT 3.0. They
have the same priority.
    -->

    <xsl:template match="(doc|cod)">
        <wrong />
    </xsl:template>

    <xsl:template match="doc">
        <ok />
    </xsl:template>

Can't find any test using the parenthesis in a step following `/`.


--~----------------------------------------------------------------
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>