Re: TMCL: RegExes on non-occurrence values

Robert Cerny <[email protected]>
Newsgroups gmane.text.xml.xtm.general
Message-ID <[email protected]>
Hi Lars,

Am 31.12.2010 um 10:31 schrieb Lars Heuer:

> Do we have a good reason to limit RegExes to occ. values? Why
> shouldn't they be allowed on name (and variant) values?

The spec [1] says: "The tmcl:regular-expression-constraint constrains all values of a given name or occurrence type shall match a given regular expression."

This is also what the meta tmcl schema does when applied. So you can formulate constraints on name and occurrence values, but not variants. The reason for this is probably because variants are untyped, so there is no statement type which  you can attach the constraint to.

Best,

Robert

[1] http://isotopicmaps.org/tmcl/tmcl.html#sect-regexp-constraint
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.