ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject Re: xml Schema + ant+xerces-j2 =>validate => error?
Date Tue, 10 Feb 2004 07:09:41 GMT
M. Emal Alekozai wrote:

> Hi,
>
> > Your build.xml is trying to validate the build.xml file.
>
> this can't be the error because my build.xml file lies a folder higher.
> I changed the build.xml file anyway. But I still got the same error. 
> Can it be that ANT usese a old version of xerces which doesn't support 
> schema correctly ?
> Perhaps just the "header" of my xml file which point to the xml schema 
> is wrong ?
> (I dowloaded the latest version of ant (about 3 weeks ago).)
>
I wonder whether the xmlvalidate task supports *at all* xml schemas.

See these pointers :

[1] bugzillla
[2] proposed patch of  Nick Pellow
Antoine

[1] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14641
[2] http://marc.theaimsgroup.com/?l=ant-dev&m=103251402601910&w=2


> regards Emal
> -------------------------------------------------------------------------
> emal@buster:~/web596/files/test/xmlSchema$ ls -l
> -rw-r--r--    1 emal     family        497 2004-02-09 23:52 build.xml
> drwxr-xr-x    2 emal     family       4,0K 2004-02-09 18:15 xml
>
> emal@buster:~/web596/files/test/xmlSchema$ ls -l xml
> -rw-r--r--    1 emal     family       1,2K 2004-02-09 18:07 
> personal-schema.xml
> -rw-r--r--    1 emal     family       2,1K 2004-02-09 18:07 personal.xsd
>
>
> emal@buster:~/web596/files/test/xmlSchema$ ant
> Buildfile: build.xml
>
> validate:
> [xmlvalidate] 
> /home/www/web596/files/test/xmlSchema/xml/personal-schema.xml:3:50: 
> cvc-elt.1: Cannot find the declaration of element 'personnel'.
>
> BUILD FAILED
> /home/www/web596/files/test/xmlSchema/build.xml:4: 
> /home/www/web596/files/test/xmlSchema/xml/personal-schema.xml is not a 
> valid XML document.
>
> Total time: 3 seconds
> emal@buster:~/web596/files/test/xmlSchema$ ant verbose
> Buildfile: build.xml
>
> BUILD FAILED
> Target `verbose' does not exist in this project.
>
> Total time: 0 seconds
> -------------------------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message