[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] modelling the business rule "at least one of the elements"
- From: Sjoerd Visscher <sjoerd@w3future.com>
- To: xml-dev@lists.xml.org
- Date: Wed, 22 Nov 2006 23:32:52 +0100
Rick Jelliffe wrote:
> (a+,
> (b,
> (a, (a |b)*)?, c)
> | (b, (a |b)*)?, c)
> | c )
> |
> (c,
> (a, (a |c)*)?, b)
> | (c, (a |c)*)?, b)
> | b ))
> |
> (b+,
>
> (a,
> (a, (a |b)*)?, c)
> | (b, (a |b)*)?, c)
> | c )
> |
> (c,
> (b, (b |c)*)?, a)
> | (c, (b |c)*)?, a)
> | a ))
> |
> (c+,
>
> (a,
> (a, (a |c)*)?, b)
> | (b, (a |c)*)?, b)
> | b )
> |
> (b,
> (b, (b |c)*)?, a)
> | (c, (b |c)*)?, a)
> | a )),
>
> (a | b | c)*
You can write this a little shorter, I think:
(a+,
(b, (a|b)*, c) |
(c, (a|c)*, b))
|
(b+,
(a, (a|b)*, c) |
(c, (b|c)*, a))
|
(c+,
(a, (a|c)*, b) |
(b, (b|c)*, a)),
(a | b | c)*
--
Sjoerd Visscher
http://w3future.com/weblog/
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]