Re: *which* alternative that matches nothing? (was Re: repetition)

On Thu, 16 Dec 2021 at 22:03, Steven Pemberton <steven.pemberton@cwi.nl> wrote:
>
>
>  > I'd be happy with empty parens, but then .....
>
> I'm not sure if it is clear, but empty parens is perfectly acceptable in
> current ixml, if you prefer to use it.
>
>     a: "a"; ().
>
> is legal ixml, and has the meaning you want.
>
> Personally, when I want to be explicit, I write
>
>     a: "a"; empty.
>     -empty: .
>
> but that's just a question of taste.
>
> The syntax of parens is that they can contain anything that can appear on
> the right-hand side of a rule, i.e that which can appear between the ":"
> and the "." of a rule.


Tks for the clarification Steven.
<myView> KISS principle, have one option - from the given list ()
seems clearest</myView>

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Received on Friday, 17 December 2021 09:35:32 UTC