ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant <>
Subject About schemavalidate Was (Re: xmlvalidate with remote schemas)
Date Tue, 26 Sep 2006 13:48:40 GMT
Steve Loughran wrote:
> Ant 1.7's <schemavalidate> extension to <xmlvalidate> sets things up 
> right for all nested <schema> elements.
> If you cannot use the beta, look at the source, see how we set up the 
> property
Thats neat.

I googled <schemavalidate> and came up with this[1] explanation on this 
little feature.

I have a question on why the namespace is chosen as the key against 
which the local XSD can be pointed out.

 <schema namespace="" file="${ws-addressing.xsd}"

It turns out that all J2EE 1.4 XSDs belong to same namespace [2]. 
Further J2EE specifies that the XML instance documents specify the 
schemaLocation hint using xsi:schemaLocation attribute

Something like :
for web.xml : <web-app xmlns="" 
xsi:schemaLocation="" version="2.4">

For ejb-jar.xml : <ejb-jar version="2.1" 

Observe how the xmlns value for both XML instance documents is same.

How would one use the <schema namespace=/> thingie in these cases to 
locate web_2_.4.xsd / ejb-jar_2.1.xsd locally ?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message