http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl index 36082cc..06a5706 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl @@ -1,55 +1,80 @@ -<?xml version="1.0" ?><?xar XSLT?> -<!-- Implmentation for the Schematron XML Schema Language. - http://www.ascc.net/xml/resource/schematron/schematron.html - - Copyright (c) 2000,2001 Rick Jelliffe and Academia Sinica Computing Center, Taiwan - - This software is provided 'as-is', without any express or implied warranty. - In no event will the authors be held liable for any damages arising from - the use of this software. - - Permission is granted to anyone to use this software for any purpose, - including commercial applications, and to alter it and redistribute it freely, - subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not claim - that you wrote the original software. If you use this software in a product, - an acknowledgment in the product documentation would be appreciated but is - not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source distribution. ---> - -<!-- Schematron message --> - -<xsl:stylesheet - version="2.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> - -<xsl:import href="iso_schematron_skeleton_for_saxon.xsl"/> - -<xsl:template name="process-prolog"> - <axsl:output method="text" /> -</xsl:template> - -<!-- use default rule for process-root: copy contens / ignore title --> -<!-- use default rule for process-pattern: ignore name and see --> -<!-- use default rule for process-name: output name --> -<!-- use default rule for process-assert and process-report: - call process-message --> - -<xsl:template name="process-message"> - <xsl:param name="pattern" /> - <xsl:param name="role" /> - <axsl:message> - <xsl:apply-templates mode="text" - /> (<xsl:value-of select="$pattern" /> - <xsl:if test="$role"> / <xsl:value-of select="$role" /> - </xsl:if>)</axsl:message> -</xsl:template> - +<?xml version="1.0" ?><?xar XSLT?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- Implementation for the Schematron XML Schema Language. + Generates simple text output messages using XSLT2 engine +--> +<!-- +Open Source Initiative OSI - The MIT License:Licensing +[OSI Approved License] + +This source code was previously available under the zlib/libpng license. +Attribution is polite. + +The MIT License + +Copyright (c) 2000-2010 Rick Jellife and Academia Sinica Computing Centre, Taiwan. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> + +<!-- Schematron message --> + +<xsl:stylesheet + version="2.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"> + +<xsl:import href="iso_schematron_skeleton_for_saxon.xsl"/> + +<xsl:template name="process-prolog"> + <axsl:output method="text" /> +</xsl:template> + +<!-- use default rule for process-root: copy contens / ignore title --> +<!-- use default rule for process-pattern: ignore name and see --> +<!-- use default rule for process-name: output name --> +<!-- use default rule for process-assert and process-report: + call process-message --> + +<xsl:template name="process-message"> + <xsl:param name="pattern" /> + <xsl:param name="role" /> + <axsl:message> + <xsl:apply-templates mode="text" + /> (<xsl:value-of select="$pattern" /> + <xsl:if test="$role"> / <xsl:value-of select="$role" /> + </xsl:if>)</axsl:message> +</xsl:template> + </xsl:stylesheet> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl index af0c843..3142878 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl @@ -1,5 +1,20 @@ <?xml version="1.0"?><?xar XSLT?> - +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <!-- OVERVIEW @@ -26,6 +41,36 @@ and the other is tailored for XSLT2 processors. Future versions of the XSLT2 skeleton may support more features than that the XSLT 1 skeleton. --> + +<!-- +Open Source Initiative OSI - The MIT License:Licensing +[OSI Approved License] + +This source code was previously available under the zlib/libpng license. +Attribution is polite. + +The MIT License + +Copyright (c) 2000-2010 Rick Jellife and Academia Sinica Computing Centre, Taiwan. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +--> <!-- TIPS @@ -80,7 +125,7 @@ select-contents '' | 'key' | '//' Select different implementation strategies Conventions: Meta-stylesheets that override this may use the following parameters - generate-paths=true|false generate the @location attribute with XPaths + generate-paths=true|false generate the @location attribute with XPaths full-path-notation = 1|2|3 select the notation for the full paths: 1=computer, 2=human, 3=obsolescent diagnose= yes | no Add the diagnostics to the assertion test in reports @@ -169,30 +214,7 @@ System.setProperty("javax.xml.xpath.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl"); which is does not work, at least for the versions of SAXON we tried. ---> -<!-- - LEGAL INFORMATION - - Copyright (c) 2000-2010 Rick Jelliffe and Academia Sinica Computing Center, Taiwan - - This software is provided 'as-is', without any express or implied warranty. - In no event will the authors be held liable for any damages arising from - the use of this software. - - Permission is granted to anyone to use this software for any purpose, - including commercial applications, and to alter it and redistribute it freely, - subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not claim - that you wrote the original software. If you use this software in a product, - an acknowledgment in the product documentation would be appreciated but is - not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source distribution. ---> +--> <!-- VERSION INFORMATION 2010-04-14 @@ -206,31 +228,31 @@ 2009-07-07 * RJ Fix up warning on looking for @* on root TODO CHECK!!!! 2009-05-10 - * RJ Fix up incorrect use of tunnel - 2009-02-25 - * RJ Fix up variable names so none are used twice in same template + * RJ Fix up incorrect use of tunnel + 2009-02-25 + * RJ Fix up variable names so none are used twice in same template 2009-02-19 * RJ add experimental support for pattern/@documents This takes an XPath that returns a sequence of strings, treats them as relative URI references, and goes through these. It may need to be expanded - to allow absolute paths. - 2008-09-19 RJ - * Add mode schematron-select-full-path and param full-path-notation - - 2008-08-19 - * RJ Add experimental property element. - This acts like the diagnostics element. An attribute rule/@properties, - assert/@properties and report/@properties can contain a list of ids - which reference a /schema/proporties/property/@id. This is a property - which will be carried over to the output, eg SVRL. It can have @name, - and the value is @value or the contents. Properties on rules are - properties regardless of validation: they should apply to the subject - element. Properties on asserts and reports only make it through in the - negative case, at the moment, so they are really just a place to hold - structured info, eg. for diagnostics. The properties mechanism addresses - a bother with Schematron, that you have to post-process the document to - get any kind of structured data that might be nice in the output report. - + to allow absolute paths. + 2008-09-19 RJ + * Add mode schematron-select-full-path and param full-path-notation + + 2008-08-19 + * RJ Add experimental property element. + This acts like the diagnostics element. An attribute rule/@properties, + assert/@properties and report/@properties can contain a list of ids + which reference a /schema/proporties/property/@id. This is a property + which will be carried over to the output, eg SVRL. It can have @name, + and the value is @value or the contents. Properties on rules are + properties regardless of validation: they should apply to the subject + element. Properties on asserts and reports only make it through in the + negative case, at the moment, so they are really just a place to hold + structured info, eg. for diagnostics. The properties mechanism addresses + a bother with Schematron, that you have to post-process the document to + get any kind of structured data that might be nice in the output report. + 2008-08-14 * RJ move all messages into localization strings, add langCode parameter, @@ -427,8 +449,8 @@ xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias" xmlns:schold="http://www.ascc.net/xml/schematron" xmlns:iso="http://purl.oclc.org/dsdl/schematron" - xmlns:exsl="http://exslt.org/common" - xmlns:xhtml="http://www.w3.org/1999/xhtml" + xmlns:exsl="http://exslt.org/common" + xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" extension-element-prefixes="exsl" version="2.0" @@ -531,9 +553,9 @@ which require a preprocess. <xsl:param name="debug">false</xsl:param> <!-- Set the language code for messages --> -<xsl:param name="langCode">default</xsl:param> - -<!-- Set the default for schematron-select-full-path, i.e. the notation for svrl's @location--> +<xsl:param name="langCode">default</xsl:param> + +<!-- Set the default for schematron-select-full-path, i.e. the notation for svrl's @location--> <xsl:param name="full-path-notation">1</xsl:param> <xsl:param name="terminate">false</xsl:param> @@ -643,8 +665,8 @@ which require a preprocess. <axsl:param name="archiveNameParameter" /> <axsl:param name="fileNameParameter" /> <axsl:param name="fileDirParameter" /> - - + + <axsl:variable name="document-uri"><axsl:value-of select="document-uri(/)" /></axsl:variable> <xsl:text> </xsl:text><xsl:comment>PHASES</xsl:comment><xsl:text> </xsl:text> <xsl:call-template name="handle-phase"/> @@ -689,32 +711,32 @@ which require a preprocess. </xsl:if> </xsl:template> -<xsl:template name="generate-default-rules"> - <xsl:text> </xsl:text> - <xsl:comment>MODE: SCHEMATRON-SELECT-FULL-PATH</xsl:comment><xsl:text> </xsl:text> - <xsl:comment>This mode can be used to generate an ugly though full XPath for locators</xsl:comment><xsl:text> </xsl:text> - <axsl:template match="*" mode="schematron-select-full-path"> - <xsl:choose> - <xsl:when test=" $full-path-notation = '1' "> - <!-- Use for computers, but rather unreadable for humans --> - <axsl:apply-templates select="." mode="schematron-get-full-path"/> - </xsl:when> - <xsl:when test=" $full-path-notation = '2' "> - <!-- Use for humans, but no good for paths unless namespaces are known out-of-band --> - <axsl:apply-templates select="." mode="schematron-get-full-path-2"/> - </xsl:when> - <xsl:when test=" $full-path-notation = '3' "> - <!-- Obsolescent. Use for humans, but no good for paths unless namespaces are known out-of-band --> - <axsl:apply-templates select="." mode="schematron-get-full-path-3"/> - </xsl:when> - - <xsl:otherwise > - <!-- Use for computers, but rather unreadable for humans --> - <axsl:apply-templates select="." mode="schematron-get-full-path"/> - </xsl:otherwise> - </xsl:choose> - </axsl:template> - +<xsl:template name="generate-default-rules"> + <xsl:text> </xsl:text> + <xsl:comment>MODE: SCHEMATRON-SELECT-FULL-PATH</xsl:comment><xsl:text> </xsl:text> + <xsl:comment>This mode can be used to generate an ugly though full XPath for locators</xsl:comment><xsl:text> </xsl:text> + <axsl:template match="*" mode="schematron-select-full-path"> + <xsl:choose> + <xsl:when test=" $full-path-notation = '1' "> + <!-- Use for computers, but rather unreadable for humans --> + <axsl:apply-templates select="." mode="schematron-get-full-path"/> + </xsl:when> + <xsl:when test=" $full-path-notation = '2' "> + <!-- Use for humans, but no good for paths unless namespaces are known out-of-band --> + <axsl:apply-templates select="." mode="schematron-get-full-path-2"/> + </xsl:when> + <xsl:when test=" $full-path-notation = '3' "> + <!-- Obsolescent. Use for humans, but no good for paths unless namespaces are known out-of-band --> + <axsl:apply-templates select="." mode="schematron-get-full-path-3"/> + </xsl:when> + + <xsl:otherwise > + <!-- Use for computers, but rather unreadable for humans --> + <axsl:apply-templates select="." mode="schematron-get-full-path"/> + </xsl:otherwise> + </xsl:choose> + </axsl:template> + <xsl:text> </xsl:text> <xsl:comment>MODE: SCHEMATRON-FULL-PATH</xsl:comment><xsl:text> </xsl:text> @@ -1001,8 +1023,8 @@ which require a preprocess. <xsl:with-param name="test" select="normalize-space(@test)" /> <xsl:with-param name="diagnostics" select="@diagnostics"/> <xsl:with-param name="flag" select="@flag"/> - - <xsl:with-param name="properties" select="@properties" /> + + <xsl:with-param name="properties" select="@properties" /> <!-- "Rich" properties --> <xsl:with-param name="fpi" select="@fpi"/> @@ -1017,7 +1039,7 @@ which require a preprocess. <xsl:with-param name="subject" select="@subject" /> </xsl:call-template> - + </axsl:otherwise> </axsl:choose> @@ -1037,7 +1059,7 @@ which require a preprocess. <xsl:with-param name="test" select="normalize-space(@test)" /> <xsl:with-param name="diagnostics" select="@diagnostics"/> <xsl:with-param name="flag" select="@flag"/> - + <xsl:with-param name="properties" select="@properties" /> <!-- "Rich" properties --> <xsl:with-param name="fpi" select="@fpi"/> @@ -1050,7 +1072,7 @@ which require a preprocess. <!-- "Linking" properties --> <xsl:with-param name="role" select="@role" /> <xsl:with-param name="subject" select="@subject" /> - </xsl:call-template> + </xsl:call-template> </axsl:if> </xsl:template> @@ -1076,7 +1098,7 @@ which require a preprocess. <xsl:with-param name="lang" select="@xml:lang"/> <xsl:with-param name="see" select="@see" /> <xsl:with-param name="space" select="@xml:space" /> - </xsl:call-template> + </xsl:call-template> </xsl:template> @@ -1419,39 +1441,39 @@ which require a preprocess. <xsl:template match="iso:pattern" mode="do-all-patterns"> <xsl:if test="($phase = '#ALL') or (../iso:phase[@id= $phase]/iso:active[@pattern= current()/@id])"> - - <!-- Extension to allow validation in multiple documents --> - <xsl:choose> - <xsl:when test="string-length(normalize-space(@documents))=0" > - <xsl:call-template name="handle-pattern" /> - </xsl:when> - <xsl:otherwise> - <axsl:variable name="thePath" - select="{@documents}" - as="xs:string*" /> + + <!-- Extension to allow validation in multiple documents --> + <xsl:choose> + <xsl:when test="string-length(normalize-space(@documents))=0" > + <xsl:call-template name="handle-pattern" /> + </xsl:when> + <xsl:otherwise> + <axsl:variable name="thePath" + select="{@documents}" + as="xs:string*" /> - <axsl:for-each select="$thePath"> - <axsl:choose> - <axsl:when test="starts-with( ., 'http:') or starts-with(., 'file:' ) - or starts-with(., '/')"><!-- try as absolute path --> - <axsl:for-each select="document(.)"> - <xsl:call-template name="handle-pattern" /> - </axsl:for-each> - </axsl:when> - <axsl:otherwise><!-- is relative path --> - <axsl:for-each select="document(concat( $document-uri , '/../', .))"> - <xsl:call-template name="handle-pattern" /> - </axsl:for-each> - </axsl:otherwise> - </axsl:choose> - </axsl:for-each> - </xsl:otherwise> - </xsl:choose> - </xsl:if> - - </xsl:template> - - <xsl:template name="handle-pattern"> + <axsl:for-each select="$thePath"> + <axsl:choose> + <axsl:when test="starts-with( ., 'http:') or starts-with(., 'file:' ) + or starts-with(., '/')"><!-- try as absolute path --> + <axsl:for-each select="document(.)"> + <xsl:call-template name="handle-pattern" /> + </axsl:for-each> + </axsl:when> + <axsl:otherwise><!-- is relative path --> + <axsl:for-each select="document(concat( $document-uri , '/../', .))"> + <xsl:call-template name="handle-pattern" /> + </axsl:for-each> + </axsl:otherwise> + </axsl:choose> + </axsl:for-each> + </xsl:otherwise> + </xsl:choose> + </xsl:if> + + </xsl:template> + + <xsl:template name="handle-pattern"> <xsl:call-template name="process-pattern"> <!-- the following select statement assumes that @id | iso:title returns node-set in document order: @@ -1467,35 +1489,35 @@ which require a preprocess. <xsl:with-param name="see" select="@see" /> <xsl:with-param name="space" select="@xml:space" /> </xsl:call-template> - <xsl:choose> + <xsl:choose> <!-- Use the key method --> <xsl:when test="$select-contexts='key'"> <axsl:apply-templates select="key('M','M{count(preceding-sibling::*)}')" mode="M{count(preceding-sibling::*)}"/> - </xsl:when> - + </xsl:when> + <!-- Use the // method --> - <xsl:when test="$select-contexts='//'"> - <xsl:choose> - <xsl:when test="@document"> - <!-- External document --> - <axsl:for-each select="{@document}"> - <!-- same code as next block, but run from different context --> - <axsl:apply-templates mode="M{count(preceding-sibling::*)}" > - <xsl:attribute name="select"> - <xsl:text>//(</xsl:text> - <xsl:for-each select="iso:rule/@context"> - <xsl:text>(</xsl:text> - <xsl:value-of select="."/> - <xsl:text>)</xsl:text> - <xsl:if test="position()!=last()">|</xsl:if> - </xsl:for-each> - <xsl:text>)</xsl:text> - <xsl:if test="$visit-text='false'">[not(self::text())]</xsl:if> - </xsl:attribute> - </axsl:apply-templates> - </axsl:for-each> - </xsl:when> - + <xsl:when test="$select-contexts='//'"> + <xsl:choose> + <xsl:when test="@document"> + <!-- External document --> + <axsl:for-each select="{@document}"> + <!-- same code as next block, but run from different context --> + <axsl:apply-templates mode="M{count(preceding-sibling::*)}" > + <xsl:attribute name="select"> + <xsl:text>//(</xsl:text> + <xsl:for-each select="iso:rule/@context"> + <xsl:text>(</xsl:text> + <xsl:value-of select="."/> + <xsl:text>)</xsl:text> + <xsl:if test="position()!=last()">|</xsl:if> + </xsl:for-each> + <xsl:text>)</xsl:text> + <xsl:if test="$visit-text='false'">[not(self::text())]</xsl:if> + </xsl:attribute> + </axsl:apply-templates> + </axsl:for-each> + </xsl:when> + <xsl:otherwise> <axsl:apply-templates mode="M{count(preceding-sibling::*)}" > <xsl:attribute name="select"> @@ -1509,17 +1531,17 @@ which require a preprocess. <xsl:text>)</xsl:text> <xsl:if test="$visit-text='false'">[not(self::text())]</xsl:if> </xsl:attribute> - </axsl:apply-templates> - </xsl:otherwise> + </axsl:apply-templates> + </xsl:otherwise> </xsl:choose> - </xsl:when> - - <!-- Use complete tree traversal --> - <xsl:when test="@document"> - <!-- External document --> - <axsl:for-each select="{@document}"> - <axsl:apply-templates select="." mode="M{count(preceding-sibling::*)}"/> - </axsl:for-each> + </xsl:when> + + <!-- Use complete tree traversal --> + <xsl:when test="@document"> + <!-- External document --> + <axsl:for-each select="{@document}"> + <axsl:apply-templates select="." mode="M{count(preceding-sibling::*)}"/> + </axsl:for-each> </xsl:when> <xsl:otherwise> <axsl:apply-templates select="/" mode="M{count(preceding-sibling::*)}"/> @@ -1564,36 +1586,36 @@ which require a preprocess. <xsl:message><xsl:call-template name="outputLocalizedMessage" ><xsl:with-param name="number">29</xsl:with-param></xsl:call-template></xsl:message> </xsl:if> <xsl:apply-templates/> - </xsl:template> - - - <!-- PROPERTY Experiemental --> - <!-- We use a mode here to maintain backwards compatability, instead of adding it - to the other mode. - --> - <xsl:template match="iso:property" mode="check-property"> - <xsl:if test="not(@id)"> - <xsl:message>No property found with that ID</xsl:message> - </xsl:if> - </xsl:template> - - <xsl:template match="iso:property" > - <xsl:call-template name="process-property"> - - <xsl:with-param name="id" select="@id"/> - - <xsl:with-param name="name" select="@name"/> - <xsl:with-param name="value" select="@value" /> - <xsl:with-param name="contents" select="*|text()" /> - </xsl:call-template> - - </xsl:template> - - <!-- PROPERTIES experimental extension --> - <xsl:template match="iso:properties" > - <xsl:apply-templates mode="check-properties" select="property" /> - </xsl:template> - + </xsl:template> + + + <!-- PROPERTY Experiemental --> + <!-- We use a mode here to maintain backwards compatability, instead of adding it + to the other mode. + --> + <xsl:template match="iso:property" mode="check-property"> + <xsl:if test="not(@id)"> + <xsl:message>No property found with that ID</xsl:message> + </xsl:if> + </xsl:template> + + <xsl:template match="iso:property" > + <xsl:call-template name="process-property"> + + <xsl:with-param name="id" select="@id"/> + + <xsl:with-param name="name" select="@name"/> + <xsl:with-param name="value" select="@value" /> + <xsl:with-param name="contents" select="*|text()" /> + </xsl:call-template> + + </xsl:template> + + <!-- PROPERTIES experimental extension --> + <xsl:template match="iso:properties" > + <xsl:apply-templates mode="check-properties" select="property" /> + </xsl:template> + <!-- ISO RULE --> @@ -1622,8 +1644,8 @@ which require a preprocess. <xsl:call-template name="process-rule"> <xsl:with-param name="context" select="@context"/> - - <xsl:with-param name="properties" select="@properties" /> + + <xsl:with-param name="properties" select="@properties" /> <!-- "Rich" properties --> <xsl:with-param name="fpi" select="@fpi"/> @@ -1636,8 +1658,8 @@ which require a preprocess. <!-- "Linking" properties --> <xsl:with-param name="role" select="@role" /> <xsl:with-param name="subject" select="@subject" /> - </xsl:call-template> - + </xsl:call-template> + <xsl:apply-templates/> <!-- DPC introduce context-xpath and select-contexts variables --> @@ -1792,49 +1814,49 @@ which require a preprocess. </xsl:call-template> </xsl:if> </xsl:template> - - - -<xsl:template name="propertiesSplit"> - <!-- Process at the current point the first of the <property> elements - referred to parameter str, and then recurse --> - <xsl:param name="str"/> - <xsl:variable name="start"> - <xsl:choose> - <xsl:when test="contains($str,' ')"> - <xsl:value-of select="substring-before($str,' ')"/> - </xsl:when> - <xsl:otherwise><xsl:value-of select="$str"/></xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="end"> - <xsl:if test="contains($str,' ')"> - <xsl:value-of select="substring-after($str,' ')"/> - </xsl:if> - </xsl:variable> - - <!-- This works with all namespaces --> - <xsl:if test="not(string-length(normalize-space($start)) = 0) - and not(//iso:property[@id = $start])"> - <xsl:message><xsl:call-template name="outputLocalizedMessage" ><xsl:with-param name="number">36a</xsl:with-param></xsl:call-template> - <xsl:value-of select="string($start)"/> - <xsl:call-template name="outputLocalizedMessage" ><xsl:with-param name="number">36b</xsl:with-param></xsl:call-template></xsl:message> - </xsl:if> - - <xsl:if test="string-length(normalize-space($start)) > 0"> - <xsl:text> </xsl:text> - <xsl:apply-templates - select="//iso:property[@id = $start ] "/> - </xsl:if> - - <xsl:if test="not($end='')"> - <xsl:call-template name="propertiesSplit"> - <xsl:with-param name="str" select="$end"/> - </xsl:call-template> - </xsl:if> -</xsl:template> - + + + +<xsl:template name="propertiesSplit"> + <!-- Process at the current point the first of the <property> elements + referred to parameter str, and then recurse --> + <xsl:param name="str"/> + <xsl:variable name="start"> + <xsl:choose> + <xsl:when test="contains($str,' ')"> + <xsl:value-of select="substring-before($str,' ')"/> + </xsl:when> + <xsl:otherwise><xsl:value-of select="$str"/></xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="end"> + <xsl:if test="contains($str,' ')"> + <xsl:value-of select="substring-after($str,' ')"/> + </xsl:if> + </xsl:variable> + + <!-- This works with all namespaces --> + <xsl:if test="not(string-length(normalize-space($start)) = 0) + and not(//iso:property[@id = $start])"> + <xsl:message><xsl:call-template name="outputLocalizedMessage" ><xsl:with-param name="number">36a</xsl:with-param></xsl:call-template> + <xsl:value-of select="string($start)"/> + <xsl:call-template name="outputLocalizedMessage" ><xsl:with-param name="number">36b</xsl:with-param></xsl:call-template></xsl:message> + </xsl:if> + + <xsl:if test="string-length(normalize-space($start)) > 0"> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="//iso:property[@id = $start ] "/> + </xsl:if> + + <xsl:if test="not($end='')"> + <xsl:call-template name="propertiesSplit"> + <xsl:with-param name="str" select="$end"/> + </xsl:call-template> + </xsl:if> +</xsl:template> + <!-- It would be nice to use this but xsl:namespace does not allow a fallback --> @@ -1961,7 +1983,7 @@ which require a preprocess. <xsl:param name="test"/> <xsl:param name="diagnostics" /> <xsl:param name="id" /> - <xsl:param name="flag" /> + <xsl:param name="flag" /> <xsl:param name="properties" /> <!-- "Linkable" parameters --> @@ -1994,7 +2016,7 @@ which require a preprocess. <xsl:param name="test"/> <xsl:param name="diagnostics" /> <xsl:param name="id" /> - <xsl:param name="flag" /> + <xsl:param name="flag" /> <xsl:param name="properties" /> <!-- "Linkable" parameters --> @@ -2092,7 +2114,7 @@ which require a preprocess. <xsl:param name="context" /> <xsl:param name="id" /> - <xsl:param name="flag" /> + <xsl:param name="flag" /> <xsl:param name="properties" /> <!-- "Linkable" parameters --> @@ -2149,25 +2171,25 @@ which require a preprocess. <axsl:value-of select="string(' ')"/> </xsl:if> - </xsl:template> - - - <!-- ===================================================== --> - <!-- Extension API: default rules --> - <!-- This allows the transmission of extra attributes on --> - <!-- rules, asserts, reports, diagnostics. --> - <!-- ===================================================== --> - - - - <xsl:template name="process-property"> - <xsl:param name="id" /> - - <xsl:param name="name"/> - <xsl:param name="value"/> - <xsl:param name="contents"/> - - </xsl:template> + </xsl:template> + + + <!-- ===================================================== --> + <!-- Extension API: default rules --> + <!-- This allows the transmission of extra attributes on --> + <!-- rules, asserts, reports, diagnostics. --> + <!-- ===================================================== --> + + + + <xsl:template name="process-property"> + <xsl:param name="id" /> + + <xsl:param name="name"/> + <xsl:param name="value"/> + <xsl:param name="contents"/> + + </xsl:template> <!-- ===================================================== --> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl index 2e8d8da..28fb87e 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl @@ -1,4 +1,20 @@ <?xml version="1.0" ?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <!-- ISO_SVRL.xsl @@ -30,6 +46,8 @@ History: + 2010-07-10 + * MIT license 2010-04-14 * Add command line parameter 'terminate' which will terminate on first failed assert and (optionally) successful report. @@ -100,27 +118,33 @@ * Created, using the skeleton code contributed by Oliver Becker --> <!-- - Derived from Conformance1-5.xsl. +Open Source Initiative OSI - The MIT License:Licensing +[OSI Approved License] - Copyright (c) 2001-2010 Rick Jelliffe and Academia Sinica Computing Center, Taiwan +This source code was previously available under the zlib/libpng license. +Attribution is polite. - This software is provided 'as-is', without any express or implied warranty. - In no event will the authors be held liable for any damages arising from - the use of this software. +The MIT License - Permission is granted to anyone to use this software for any purpose, - including commercial applications, and to alter it and redistribute it freely, - subject to the following restrictions: +Copyright (c) 2004-2010 Rick Jellife and Academia Sinica Computing Centre, Taiwan - 1. The origin of this software must not be misrepresented; you must not claim - that you wrote the original software. If you use this software in a product, - an acknowledgment in the product documentation would be appreciated but is - not required. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - 3. This notice may not be removed or altered from any source distribution. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. --> <!-- Ideas nabbed from schematrons by Francis N., Miloslav N. and David C. --> @@ -152,7 +176,7 @@ <!-- Select the import statement and adjust the path as necessary for your system. --> -<xsl:import href="iso_schematron_skeleton_for_saxon.xsl" /> +<xsl:import href="iso_schematron_skeleton_for_saxon.xsl"/> <!-- <xsl:import href="iso_schematron_skeleton_for_xslt1.xsl"/> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-cs.xhtml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-cs.xhtml b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-cs.xhtml index 93e181c..e9de510 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-cs.xhtml +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-cs.xhtml @@ -1,5 +1,21 @@ <xhtml:div class="ErrorMessages" xml:lang="cs" xmlns:xhtml="http://www.w3.org/1999/xhtml" > + <!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + --> <!-- Obsahuje-li chybové hlášenà dynamické informace, je rozdÄleno do sekcà "a" a "b". Různé jazyky tak mohou dynamické informace umÃstit s ohledem na svá gramatická pravidla. --> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-de.xhtml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-de.xhtml b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-de.xhtml index 51caeb1..e754c60 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-de.xhtml +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-de.xhtml @@ -1,6 +1,22 @@ <xhtml:div class="ErrorMessages" xml:lang="en" - xmlns:xhtml="http://www.w3.org/1999/xhtml" > + xmlns:xhtml="http://www.w3.org/1999/xhtml" > +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <!-- Where the error message contains dynamic information, the message has been split into an "a" and a "b" section. This has been done even when the English does not require it, in order to accomodate different language grammars that might position the dynamic information differently. @@ -54,4 +70,4 @@ <xhtml:p id="sch-message-38b-de" /> <xhtml:p id="sch-message-39a-de">Warnung: Unbekanntes Element </xhtml:p> <xhtml:p id="sch-message-39b-de" /> - </xhtml:div> + </xhtml:div> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-en.xhtml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-en.xhtml b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-en.xhtml index 6f777ed..822627d 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-en.xhtml +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-en.xhtml @@ -1,6 +1,22 @@ <xhtml:div class="ErrorMessages" xml:lang="en" - xmlns:xhtml="http://www.w3.org/1999/xhtml" > + xmlns:xhtml="http://www.w3.org/1999/xhtml" > +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <!-- Where the error message contains dynamic information, the message has been split into an "a" and a "b" section. This has been done even when the English does not require it, in order to accomodate different language grammars that might position the dynamic information differently. http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-fr.xhtml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-fr.xhtml b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-fr.xhtml index a797db7..74afb37 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-fr.xhtml +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-fr.xhtml @@ -1,4 +1,20 @@ -<xhtml:div class="ErrorMessages" xml:lang="fr" xmlns:xhtml="http://www.w3.org/1999/xhtml"> +<xhtml:div class="ErrorMessages" xml:lang="fr" xmlns:xhtml="http://www.w3.org/1999/xhtml"> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <!-- Where the error message contains dynamic information, the message has been split into an "a" and a "b" section. This has been done even when the English does not require it, in order to accomodate different language grammars that might position the dynamic information differently. http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-nl.xhtml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-nl.xhtml b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-nl.xhtml index 5f05577..e91db54 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-nl.xhtml +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/sch-messages-nl.xhtml @@ -1,4 +1,20 @@ <xhtml:div class="ErrorMessages" xml:lang="nl" xmlns:xhtml="http://www.w3.org/1999/xhtml"> + <!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <!-- Where the error message contains dynamic information, the message has been split into an "a" and a "b" section. This has been done even when the English does not require it, in order to accomodate different language grammars that might position the dynamic information differently. http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/main/resources/iso-schematron-xslt2/schematron-skeleton-api.htm ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/schematron-skeleton-api.htm b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/schematron-skeleton-api.htm index af81377..78786ac 100644 --- a/components/camel-schematron/src/main/resources/iso-schematron-xslt2/schematron-skeleton-api.htm +++ b/components/camel-schematron/src/main/resources/iso-schematron-xslt2/schematron-skeleton-api.htm @@ -1,4 +1,20 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/test/resources/report/article-1-report.xml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/test/resources/report/article-1-report.xml b/components/camel-schematron/src/test/resources/report/article-1-report.xml index 1f40fe8..71f1049 100644 --- a/components/camel-schematron/src/test/resources/report/article-1-report.xml +++ b/components/camel-schematron/src/test/resources/report/article-1-report.xml @@ -1,4 +1,20 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <svrl:schematron-output xmlns:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:iso="http://purl.oclc.org/dsdl/schematron" xmlns:xhtml="http://www.w3.org/1999/xhtml" http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/test/resources/report/article-2-report.xml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/test/resources/report/article-2-report.xml b/components/camel-schematron/src/test/resources/report/article-2-report.xml index d3069cb..1717600 100644 --- a/components/camel-schematron/src/test/resources/report/article-2-report.xml +++ b/components/camel-schematron/src/test/resources/report/article-2-report.xml @@ -1,4 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <svrl:schematron-output xmlns:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:iso="http://purl.oclc.org/dsdl/schematron" xmlns:saxon="http://saxon.sf.net/" xmlns:schold="http://www.ascc.net/xml/schematron" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" schemaVersion="" title=""> <!-- http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/test/resources/sch/schematron-1.sch ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/test/resources/sch/schematron-1.sch b/components/camel-schematron/src/test/resources/sch/schematron-1.sch index 49b329c..bc31fc7 100644 --- a/components/camel-schematron/src/test/resources/sch/schematron-1.sch +++ b/components/camel-schematron/src/test/resources/sch/schematron-1.sch @@ -1,4 +1,20 @@ <?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> @@ -14,4 +30,4 @@ </sch:rule> </sch:pattern> -</sch:schema> \ No newline at end of file +</sch:schema> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/test/resources/sch/schematron-2.sch ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/test/resources/sch/schematron-2.sch b/components/camel-schematron/src/test/resources/sch/schematron-2.sch index 18f4bca..ed6a1e3 100644 --- a/components/camel-schematron/src/test/resources/sch/schematron-2.sch +++ b/components/camel-schematron/src/test/resources/sch/schematron-2.sch @@ -1,4 +1,20 @@ <?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> @@ -18,4 +34,4 @@ </sch:rule> </sch:pattern> -</sch:schema> \ No newline at end of file +</sch:schema> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/test/resources/schema/article.xsd ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/test/resources/schema/article.xsd b/components/camel-schematron/src/test/resources/schema/article.xsd index 8eb79b3..408a013 100644 --- a/components/camel-schematron/src/test/resources/schema/article.xsd +++ b/components/camel-schematron/src/test/resources/schema/article.xsd @@ -1,4 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="doc"> <xs:complexType> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/test/resources/xml/article-1.xml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/test/resources/xml/article-1.xml b/components/camel-schematron/src/test/resources/xml/article-1.xml index 3c95d56..b9b4825 100644 --- a/components/camel-schematron/src/test/resources/xml/article-1.xml +++ b/components/camel-schematron/src/test/resources/xml/article-1.xml @@ -1,4 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <doc> <chapter id="c1"> <title>chapter title</title> http://git-wip-us.apache.org/repos/asf/camel/blob/6a9de538/components/camel-schematron/src/test/resources/xml/article-2.xml ---------------------------------------------------------------------- diff --git a/components/camel-schematron/src/test/resources/xml/article-2.xml b/components/camel-schematron/src/test/resources/xml/article-2.xml index 33698b5..10b3190 100644 --- a/components/camel-schematron/src/test/resources/xml/article-2.xml +++ b/components/camel-schematron/src/test/resources/xml/article-2.xml @@ -1,4 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> <p:doc xmlns:p="http://www.apache.org/camel/schematron"> <p:chapter id="c1"> <p:para>Chapter content</p:para>
