The interest in microformats (architectural forms by any other name for you old timers) got me thinking about RNG validation of these embedded vocabularies.
Clearly DTDs and W3C XML Schema are right out the door for this sort
of thing. Schematron can obviously do it, but can RELAX NG? My first
thought was yes, but now I'm not so sure.
If I have an attribute with an enumerated list of values, I can easily
use the various possible values to select an appropriate element
pattern, but can I do the same thing for attributes that are
effectively CDATA?
Suppose I have two patterns:
normal.div = element div { ... }
vevent.div = element div { ... }
And consider James' definition of the XHTML class attribute:
class.attrib = attribute class { NMTOKENS.datatype }?
Suppose I want vevent.div to match
<div class="vevent">
but I want normal.div to match
<div class="any-other-random-token">
Can that be accomplished without bounding the set of possible
"any-other-random-token" values?
Be seeing you,
norm
--
Norman Walsh <[EMAIL PROTECTED]> | There is no such thing as an absolute
http://nwalsh.com/ | certainty, but there is assurance
| sufficient for the purposes of human
| life.--John Stuart Mill
pgp5pICo1aKME.pgp
Description: PGP signature
