Insert all the embedded Schematron rules at the beginning of the RELAX NG schema as a child of the top-level element. Then you always know that if you have embedded rules, they will be specified together and in the same place.
Specify each Schematron rule on the element
pattern that specifies the context of the embedded
rule. In the previous example this means that one of
the Schematron rules would be embedded on the element
pattern for the item
element and the
other on the element pattern for
the amount
element in the payment
section."
> Well the other thing I'm not clear on is that for the RNG the schematronI don't understand that. An element placed after the document (top-level)
> logic can be placed after the top level grammar element,, for the RNC I'm
> getting syntax error
element would not be well-formed XML.