Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 148463

Summary: [validation] xml file not validated after modifying dtd or xsd file
Product: [WebTools] WTP Source Editing Reporter: William Fulton <wsf>
Component: wst.xmlAssignee: wst.xml-triaged <wst.xml-triaged>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: enhancement    
Priority: P3 CC: b.muskalla, d_a_carver, valentinbaciu
Version: 1.5Keywords: helpwanted
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description William Fulton CLA 2006-06-23 17:01:07 EDT
Create a new project based on the xml examples.
With the Project -> Properties -> Validation, Validation Builder to Project selected, open Invoice.dtd
Remove this line:
 custNumber ID #REQUIRED
Save the file.
The invoice.xml file is not validated.
Note this is the xml file that is not validated after changing the dtd file.
The same problem occurs when modifying the .xsd files.
Comment 1 Lawrence Mandel CLA 2006-06-27 16:18:07 EDT
I'm going to attempt to phase your problem in my own words. Please let me know if I've got it right.

You have a valid DTD (or XSD) and a valid XML file that references the grammar. You make a change to the DTD that will invalidate the XML file and save the DTD. You expect the XML file to be revalidated but it is not, only the DTD is revalidated.

Correct?
Comment 2 William Fulton CLA 2006-06-28 05:24:18 EDT
Absolutely correct.
Comment 3 Lawrence Mandel CLA 2006-06-28 11:15:07 EDT
WTP never offered this functionality although it should be expected as JDT offers this functionality for Java files.

I've updated the severity to enhancement.
Comment 4 Valentin Baciu CLA 2007-11-08 14:02:05 EST
We'll have to find out if the validation framework provides any support for dependency tracking. A feature like this is likely applicable to all kinds of cross references (XSD to XML, DTD to XML, XSD to WSDL, etc).
Comment 5 Valentin Baciu CLA 2009-11-02 13:21:03 EST
We've implemented this feature in WTP 3.0. The XML validator now takes advantage of the new Validation Framework dependency re-validation mechanism.

*** This bug has been marked as a duplicate of bug 224186 ***