I need to make a schema to edit 'xml components' for our site that may have the Apache Cocoon SQL Query tags inside.
They look something like this: <component xmlns="http://www.xmlmind.com/xmleditor/schema/iniva"> <meta> <title>curators</title> <desc>gets the list of all people who are curators, optionally uses the 'count-paging' interface.</desc> </meta> <chapter type="people"> <meta> <title>all curators</title> <desc>the list of all curators in the archive</desc> </meta> <execute-query xmlns="http://apache.org/cocoon/SQL/2.0"> <query name="count-paging"> SELECT COUNT(*) AS total FROM person p, typereference t WHERE p.id = t.id AND t.typeid = 8 </query> </execute-query> <execute-query xmlns="http://apache.org/cocoon/SQL/2.0" xmlns:sql="http://apache.org/cocoon/SQL/2.0"> <query name="curators"> SELECT p.id AS personid, CONCAT(p.firstname,' ', p.surname) AS title FROM person p, typereference t WHERE p.id = t.id AND t.typeid = 8 ORDER BY p.surname LIMIT <substitute-value sql:name="start"/>,<substitute-value sql:name="count"/> </query> </execute-query> </chapter> </component> I would like to make one XSD file for the 'iniva:component' part of this and a separate XSD file for the sql:execute-query aspect of it, as this can be separately contributed to the Apache Cocoon project (where I am a committer). What I am confused about is the issue of the fixed default namespace for XSD used by the free version of XXE. ie. I HAVE to use the 'http://apache.org/cocoon/SQL/2.0' namespace in these documents. Will this be possible? Can you give me an example of how the <xsd:schema> header (NS declarations) would look like? PS. I do seem to be able to switch to using the SQL namespace as a prefixed rather than default namespace in these documents, is this the answer? Thanks for any help. regards Jeremy

