POM validate does so more on Maven's requirements than just the xsd I
believe.

Your doctype has the wrong root element (web-app), the publicId is
artificial so you might as well use SYSTEM instead of PUBLIC
"maven-project", and lastly I'm not sure DOCTYPE works with xsd at all :) I
think it is only for dtds, but to be honest I'm not sure. I don't think
there is an equivalent for schemas - you have to specify it externally.

Cheers,
Brett

> -----Original Message-----
> From: Nathan Coast [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 4 September 2003 7:21 PM
> To: Maven Users
> Subject: POM validation / XSD
> 
> 
> Hi,
> 
> POM validation, is there any reason why project.xml is 
> validated using 
> pom:validate rather than adding a DOCTYPE element to the project.xml? 
> So allowing my xml editor to worry about the validity of my 
> project.xml.
> 
> I tried adding this
> 
> <!DOCTYPE web-app
>    PUBLIC "maven-project"
>    "maven-project.xsd">
> 
> with maven-project.xsd in the same dir as the project.xml.  
> This didn't 
> work, but I'm assuming this is due to me knowing very little 
> about xml, 
> rather than something wrong with the xsd.
> 
> thanks
> Nathan
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to