[relaxng-user] Custom complex type libraries

John Cowan jcowan at reutershealth.com
Tue Nov 2 08:20:28 ICT 2004


Elliotte Harold scripsit:
> RELAX NG allows one write custom type libraries for simple data types 
> (i.e. PCDATA) in a variety of programming languages. Does this also 
> extend to complex types, or is there any equivalent? For instance, could 
> I write Java code to verify that the name of every child element was the 
> name of a field in a particular table? (I don't really need to do that. 
> It's just one example of something you can't do in pure RELAX NG that 
> you could do in Java. There are many other possibilities.)

No, you couldn't.  Complex types are represented by RNG patterns.
(But if you have an actual use case, by all means bring it up -- such
things may help create enough groundswell for RNG 2.0.)

-- 
Here lies the Christian,                        John Cowan
        judge, and poet Peter,                  http://www.reutershealth.com
Who broke the laws of God                       http://www.ccil.org/~cowan
        and man and metre.                      jcowan at reutershealth.com


More information about the relaxng-user mailing list