cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject Dynamic Schematron validation works!
Date Fri, 15 Mar 2002 17:26:56 GMT
Dear All,

Encouraged by Ivelin Ivanov's work, I tried to see if the XSLT generated by
Schematron could be dynamically generated.

It can!

Here were my test pipelines (using all Ivelin's files):

Using a pre-made validating XSLT:

<map:match pattern="static-validation">
	<map:generate src="schematron/some-xmlform.xml"/>
	<map:transform src="schematron/xmlform-sch-report.xsl"/>
	<map:serialize type="xml"/>

Using a validating XSLT, generated by another pipeline:

<map:match pattern="dynamic-validation">
	<map:generate src="schematron/some-xmlform.xml"/>
	<map:transform src="cocoon:/make-validator"/>
	<map:serialize type="xml"/>

A pipeline for generating validating XSLT:

<map:match pattern="make-validator">
	<map:generate src="schematron/xmlform-sch-report.xml"/>
	<map:transform src="schematron/xmlform-schematron.xsl"/>
	<map:serialize type="xml"/>

Apart from having to comment out a reference to <saxon:output/> in
'wrappers.xsl' it all worked fine.

I viewed this with MSIE 5, the xml was the same as the samples.


regards Jeremy

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <>     		 <>
   <phone:+44.[0].20.7737.6831>             <>

To unsubscribe, e-mail:
For additional commands, email:

View raw message