Hello,

I'm using the xml plugin to validate certain xml files. Thank you for
the plug-in. 
I would like to verify that I am understanding the usage correctly.

>From what I've gathered I configure the plugin to look in a directory
using includes/excludes to locate the xml file(s) to be validated.
I also then pass one of publicId or systemId as the schema file used to
perform the validation?
This works great for current use case.

Next, I realize I should set this up for just about all well known xml
descriptors in use in our projects for mainly j2ee projects. 
This would mean webservice.xml, application.xml, web.xml, *.tld,
ejb-jar.xml, portlet.xml, struts-config.xml, faces-config.xml,
*tiles.xml, validator-rules, so on.

The question I have now is how to do this is very generic way. Ideally
that would mean configuring from the corporate parent pom and inheriting
the plugin configuration. Is it possible to for the plugin to simply use
the declared schema id and schemaLocation contained in the xml file?

I would also like to be able to host the xsd's in a maven artifact (jar
most likely) so that the xsd's are loaded from the local repository
after intial download if possible? I think that would require a catalog
and 'jar:' urls. The local repository location would need to be
interpolated by the resolver too?

The fact that I can specify/force a particular xsd is still very useful
as opposed to relying on the declared schema and schemaLocation. I am
wondering if I can do both?

Any thoughts or advice appreciated.

Thank you,
Tim



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to