xsl-list
[Top] [All Lists]

RE: [xsl] mass validation of xml files

2006-06-29 15:59:56
  I guess it would be possible with a schema processor like 
Saxon to load once the schema and loop over the 30,000 files 
with a little custom application.

Yes indeed. Something like this:

<xsl:import-schema namespace="abc" schema-location="abc.xsd"/>

<xsl:template name="start">
  <out>Validated <xsl:value-of
select="count(collection('source-dir?validate=strict;on-error=warning'))"/>
documents</out>
</xsl:template>

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--