- Add support for Schematron validation
- Add a simple Schematron file that validates file references - Silence the output of validation so that the result be more readable
This commit is contained in:
parent
eb47c46865
commit
44368e5859
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/projects/xml-tools/; revision=41205
2 changed files with 48 additions and 3 deletions
11
share/xml/freebsd.sch
Normal file
11
share/xml/freebsd.sch
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<schema xmlns="http://purl.oclc.org/dsdl/schematron">
|
||||
<pattern name="Check file reference validity">
|
||||
<rule context="//*/@fileref">
|
||||
<assert test="contains(., '.')">File reference does not have an extension.</assert>
|
||||
</rule>
|
||||
</pattern>
|
||||
</schema>
|
Loading…
Add table
Add a link
Reference in a new issue