034001cba11c$5e843530$1b8c9f90$@gmail.com" type="cite">XSD tries to do this with complex type restrictions, but I would avoid that route if possible, partly because it involves restating all the things that don't change, partly because you have to define complex type resctrictions at every level of the XML hierarchy. I would rely on XPath assertions to define additional constraints from those in the base schema - expressed either using XSD 1.1, or Schematron, or simply an XSLT stylesheet. Michael Kay Saxonica |