Reuse using the Include Element

Roger Costello

Click arrow key () to navigate to next page

Reuse

The Include Element

  1. <sch:include href="classification-pattern.sch" />

Example

Whole or Part of a Schema

  1. <sch:include href="example.sch#foo" />

Include Patterns, Rules, Assertions

Include Patterns, Rules, Assertions

  1. <xml version="1.0"?>
  2. <sch:schema xmlns:sch="http://www.ascc.net/xml/schematron">
  3. <sch:include href="pattern1.sch" />
  4. <sch:include href="pattern2.sch" />
  5. ...
  6. <sch:pattern id="..." />
  7. <sch:include href="rule1.sch" />
  8. <sch:include href="rule2.sch" />
  9. ...
  10. <sch:rule context="..." />
  11. <sch:includet href="assertion1.sch" />
  12. <sch:include href="assertion2.sch" />
  13. ...
  14. </sch:rule>
  15. </sch:pattern>
  16. </sch:schema>