-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Schematron for path checking and update incorrect paths. (#256)
- Loading branch information
1 parent
371a217
commit 21383fb
Showing
6 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<sch:schema xmlns:p="http://www.w3.org/ns/xproc" | ||
xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2" | ||
xmlns:sqf="http://www.schematron-quickfix.com/validator/process"> | ||
<sch:ns uri="http://www.w3.org/ns/xproc" prefix="p"/> | ||
<sch:pattern> | ||
<sch:rule context="//(p:document|p:import)/@href"> | ||
<sch:assert role="fatal" test="doc-available(resolve-uri(current(), document-uri(/)))" id="xpl-import-bad-href-target">No XML document at target location <sch:value-of select="resolve-uri(current(), document-uri(/))"/>.</sch:assert> | ||
</sch:rule> | ||
</sch:pattern> | ||
</sch:schema> |