On 12/2/2017 9:26 AM, Costello, Roger L. wrote:
Hi Folks, XML documents oftentimes contain a set of things – a set of books, a set of people, a set of transactions, etc. Typically, a set isn’t allowed to contain just anything, the set must satisfy some constraints. Constraints can be expressed in different ways. Perhaps one way is better than another? Perhaps one is more declarative, the other more imperative? Perhaps one is XMLish, the other not?
> [clip...]
Rules can be described using a rules language. If you like one that is "XML-ish", then you're good.Recap: We’ve seen two ways to specify (constrain) a set: (a) State a property (or properties) that an object must have to qualify as a member of the set. (b) Define a set of rules which generate its members. Which way is better? Which is preferred? Which is more declarative? Which is more XMLish? /Roger