LCWD comment on p:validate-with-schematron

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 UTC