schematronium 0.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/README.md +37 -0
- data/Rakefile +10 -0
- data/bin/schematronium +58 -0
- data/lib/iso-schematron-xslt2/ExtractSchFromRNG-2.xsl +75 -0
- data/lib/iso-schematron-xslt2/ExtractSchFromXSD-2.xsl +77 -0
- data/lib/iso-schematron-xslt2/iso_abstract_expand.xsl +297 -0
- data/lib/iso-schematron-xslt2/iso_dsdl_include.xsl +1508 -0
- data/lib/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl +55 -0
- data/lib/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl +2299 -0
- data/lib/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl +684 -0
- data/lib/iso-schematron-xslt2/readme.txt +100 -0
- data/lib/iso-schematron-xslt2/sch-messages-cs.xhtml +56 -0
- data/lib/iso-schematron-xslt2/sch-messages-de.xhtml +57 -0
- data/lib/iso-schematron-xslt2/sch-messages-en.xhtml +57 -0
- data/lib/iso-schematron-xslt2/sch-messages-fr.xhtml +54 -0
- data/lib/iso-schematron-xslt2/sch-messages-nl.xhtml +58 -0
- data/lib/iso-schematron-xslt2/schematron-skeleton-api.htm +723 -0
- data/lib/schematronium.rb +55 -0
- data/schematronium.gemspec +26 -0
- data/test/test_data/schematron/test.sch +13 -0
- data/test/test_data/xml/test.xml +10 -0
- data/test/test_schematronium.rb +22 -0
- metadata +129 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
<?xml version="1.0" ?><?xar XSLT?>
|
2
|
+
<!-- Implmentation for the Schematron XML Schema Language.
|
3
|
+
http://www.ascc.net/xml/resource/schematron/schematron.html
|
4
|
+
|
5
|
+
Copyright (c) 2000,2001 Rick Jelliffe and Academia Sinica Computing Center, Taiwan
|
6
|
+
|
7
|
+
This software is provided 'as-is', without any express or implied warranty.
|
8
|
+
In no event will the authors be held liable for any damages arising from
|
9
|
+
the use of this software.
|
10
|
+
|
11
|
+
Permission is granted to anyone to use this software for any purpose,
|
12
|
+
including commercial applications, and to alter it and redistribute it freely,
|
13
|
+
subject to the following restrictions:
|
14
|
+
|
15
|
+
1. The origin of this software must not be misrepresented; you must not claim
|
16
|
+
that you wrote the original software. If you use this software in a product,
|
17
|
+
an acknowledgment in the product documentation would be appreciated but is
|
18
|
+
not required.
|
19
|
+
|
20
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
21
|
+
misrepresented as being the original software.
|
22
|
+
|
23
|
+
3. This notice may not be removed or altered from any source distribution.
|
24
|
+
-->
|
25
|
+
|
26
|
+
<!-- Schematron message -->
|
27
|
+
|
28
|
+
<xsl:stylesheet
|
29
|
+
version="2.0"
|
30
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
31
|
+
xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias">
|
32
|
+
|
33
|
+
<xsl:import href="iso_schematron_skeleton_for_saxon.xsl"/>
|
34
|
+
|
35
|
+
<xsl:template name="process-prolog">
|
36
|
+
<axsl:output method="text" />
|
37
|
+
</xsl:template>
|
38
|
+
|
39
|
+
<!-- use default rule for process-root: copy contens / ignore title -->
|
40
|
+
<!-- use default rule for process-pattern: ignore name and see -->
|
41
|
+
<!-- use default rule for process-name: output name -->
|
42
|
+
<!-- use default rule for process-assert and process-report:
|
43
|
+
call process-message -->
|
44
|
+
|
45
|
+
<xsl:template name="process-message">
|
46
|
+
<xsl:param name="pattern" />
|
47
|
+
<xsl:param name="role" />
|
48
|
+
<axsl:message>
|
49
|
+
<xsl:apply-templates mode="text"
|
50
|
+
/> (<xsl:value-of select="$pattern" />
|
51
|
+
<xsl:if test="$role"> / <xsl:value-of select="$role" />
|
52
|
+
</xsl:if>)</axsl:message>
|
53
|
+
</xsl:template>
|
54
|
+
|
55
|
+
</xsl:stylesheet>
|