camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: XML Validation with multiple XSLT schema files.
Date Mon, 22 Jun 2009 04:21:47 GMT
On Thu, Jun 18, 2009 at 1:32 PM, SwenVogel <swen.vogel@ypsystems.de> wrote:

>
> 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[]{}));
>
> processor.setSchema(schema);
>
>
> A nice component feature would be to specify a list of ressources, for
> example in this way:
> validator:someLocalOrRemoteResource,someLocalOrRemoteResource,...


Hi

Yeah good idea. Do you mind creating a ticket for this?
Then we can add such a feature to the URI so you can pass in multiple
resources, separated by comma.




>
> --
> View this message in context:
> http://www.nabble.com/XML-Validation-with-multiple-XSLT-schema-files.-tp24068904p24091105.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>


-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message