| Summary: | Separate enablement of overall XML structure validation and grammar reference (check) validation | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Eric Estievenart <eric.estievenart> |
| Component: | wst.xml | Assignee: | wst.xml <wst.xml-inbox> |
| Status: | NEW --- | QA Contact: | Nick Sandonato <nsand.dev> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | rakes123, remy.suen |
| Version: | 3.2.2 | ||
| Target Milestone: | Future | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
XML editor issues goes elsewhere... It is clearly an enhancement request. |
Build Identifier: 20100917-0705 When an xml file has no grammar associated with it (custom file without schema/dtd/dsd/..., or user too lazy to enter it properly), there are only 2 options: - Let the validation be performed anyway (enable the XML validator) => You will get forever a warning marker in your problems: "No grammar constraint (DTD or XML schema) detected for document" This pollutes the problems, so not acceptable. - Disable the validation (by disabling or adding an exclusion filter in the XML validator) => The warning disappears BUT BUT BUT !!!!!!!! if there is any error in the xml syntax of the document, it is not shown in the problems view, and this is even more unacceptable ! There should be a third way: - Enable the validation as pure xml without grammar - Disable grammar validation checks Recommendations: Split the "XML validator" option in 2: - XML structure validator: only validates the basic xml structure, with the current include/exclude settings - XML document validator: same inc/exc settings, only applies for a document when the structure validator is enabled. Reproducible: Always Steps to Reproduce: Create 2 documents: file1.mytype.xml: <something/> file2.mytype.xml <unclosedtag> And try to have one and only one error displayed for file2 (element not closed) whereas file1 has none (because you say that *.mytype.xml have no grammar) This is impossible.