Re: [xsl] Grouping in match patterns

Subject: Re: [xsl] Grouping in match patterns
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 14 Jul 2020 16:41:26 -0000
Am 14.07.2020 um 18:34 schrieb Norman Tovey-Walsh ndw@xxxxxxxxxx:
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.xs
l,
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 `/`.

Current Thread