camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SwenVogel <>
Subject Re: XML Validation with multiple XSLT schema files.
Date Thu, 18 Jun 2009 11:32:44 GMT

The problem is that all schemas must be present at the time of validating.
This is because the 
element declarations ar spread across differnet schema files.

But i think it should work when setting the Schema used by the
ValidatingProcessor manually:

ValidatingProcessor processor = new ValidatingProcessor(); 

List<Source> schemaSources = new ArrayList<Source>();
// add all required schemas to the list

Schema schema = processor.getSchemaFactory().newSchema(
    schemaSources.toArray(new Source[]{}));


A nice component feature would be to specify a list of ressources, for
example in this way:
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message