Hi Robin. On 15/11/05, Robin Berjon <[EMAIL PROTECTED]> wrote: > Is div the root of your document, or is it contained in something > else? Something else. <?xml version="1.0" encoding="UTF-8"?> <grammar xmlns:db="http://docbook.org/ns/docbook" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:s="http://www.ascc.net/xml/schematron" ns="http://docbook.org/ns/docbook" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <include href="docbook.rng"> <div> <a:documentation>file level brace</a:documentation> <a:documentation> Note. Reductions have removed structure. Always look at docbook.rnc to check on the original definition when restoring content models, to keep aligned with docbook </a:documentation> <define name="db.itemizedlist" combine="choice">
is the top of the rng file. The div element can definitely contain define, but it's not > allowed as the content of any element (at least, not that I can tell > from the spec, though maybe it should be). > > > If I add the namespace > > namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0" > > > > to the definition, and put the 'div' into that namespace, > > relames is happy. > > It's probably happy about you putting something in any namespace that > isn't the RelaxNG namespace. The curious thing is, I ran it through jing and relames earlier today. Neither complained, hence the question here. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/2U_rlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/rng-users/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
