In the example above, the pattern element resided in a document all by itself. Thus, the entire document was included.
Alternatively, the element being included may be part of a Schematron schema. Then a fragment identifier is used in the include element to
pinpoint the desired element. The value of the fragment identifier is the element's identifier.
For example, if you want to include into your schema a pattern with id="foo" then you reference it like this:
<sch:include href="example.sch#foo" />
Include Patterns, Rules, Assertions
Any well-formed Schematron element can be included.
The include element must occur at the top of the schema, pattern, or rule element: