crossley 2003/03/04 18:06:43
Added: src/webapp/WEB-INF/entities any.rng Log: Grammar that matches the ANY content type. Revision Changes Path 1.1 xml-cocoon2/src/webapp/WEB-INF/entities/any.rng Index: any.rng =================================================================== <?xml version="1.0"?> <!-- A RELAX NG schema that matches the (ANY) content type. Useful for prototyping, where you don't (yet) care what an element contains. Include it in another RNG schema with this line: <include href="any.rng"/> Taken from an email to XML-DEV by John Cowan, Subject "Re: [xml-dev] Quick RelaxNG question" $Revision: 1.1 $ $Date: 2003/03/05 02:06:43 $ --> <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element> <anyName/> <ref name="ANY"/> </element> </start> <define name="ANY"> <interleave> <zeroOrMore> <attribute> <anyName/> <text/> </attribute> </zeroOrMore> <zeroOrMore> <element> <anyName/> <ref name="ANY"/> </element> </zeroOrMore> <text/> </interleave> </define> </grammar>