Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] mass validation of xml files


Subject: RE: [xsl] mass validation of xml files
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 29 Jun 2006 23:59:36 +0100

>   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/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords