[relaxng-user] (no subject)

jcowan at reutershealth.com jcowan at reutershealth.com
Fri Jan 9 16:42:43 ICT 2004


Steve Drach scripsit:

> However, when I run jing on this to verify it, I get the following
> message:
> 
> test.rng:8:31: error: interleave of "string" or "data" element
> 
> I'm not quite sure what I'm doing wrong here.  

You have stepped on one of the very few arbitrary restrictions of RNG:
you can't interleave typed data, only elements and text.

You could write a bit of XSLT to generate all the cases.
There are 27 logical cases.

The 1 zero-feature case can be written in 1 way.
The 6 one-feature cases can be written in 1 way each.
The 12 two-features cases can be written in 2 ways each.
The 8 three-feature cases can be written in 6 ways each.

Total physical cases: 79.

-- 
The man that wanders far                        jcowan at reutershealth.com
from the walking tree                           http://www.reutershealth.com
        --first line of a non-existent poem by:         John Cowan


More information about the relaxng-user mailing list