W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > September 2008

LCWD comment on p:validate-with-schematron

From: Jirka Kosek <jirka@kosek.cz>
Date: Wed, 24 Sep 2008 10:36:14 +0200
Message-ID: <48D9FBFE.1020309@kosek.cz>
To: public-xml-processing-model-comments@w3.org
Hi,

signature of p:validate-with-schematron is defined as:

<p:declare-step type="p:validate-with-schematron">
     <p:input port="source" primary="true"/>
     <p:input port="schema"/>
     <p:output port="result" primary="true"/>
     <p:output port="report" sequence="true"/>
     <p:option name="assert-valid" select="'true'"/>               <!--
boolean -->
</p:declare-step>

But there should be at least another option to specify "phase".
Schematron schema can group patterns into several phases and user should
be able to specify which phase to use. Something like:

<p:option name="phase" select="'#ALL'"/>

(Note, #ALL is Schematron constant for validating against all phases
available in the schema.)

If you will look at Schematron spec (available at
http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html) you
will see in section 6.1 that Schematron validation can be also affected
by a list of external variables, but I have never seen this used in
practise, so might be there is no need to add this. But phase should be
definitively there.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------


Received on Wednesday, 24 September 2008 08:37:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 September 2008 08:37:04 GMT