Closed Bug 178308 Opened 22 years ago Closed 22 years ago

Request for validity check on XML and XHTML files

Categories

(Core :: XML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 22942

People

(Reporter: Christian.Hujer, Assigned: hjtoi-bugzilla)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016

Additionally to check XML files for wellformedness, Mozilla should check them
for validity.
Invalid files basically may get displayed.

There should be available these settings:
(o) Do not check for validity <--default because current setting
( ) Check for validity but do not warn about invalid XML
( ) Check for validity and warn (e.g. a warning icon) about invalid XML
( ) Check for validity and display a validity error instead of the file for
invalid XML

This setting of course can only apply to XML Documents with a Schema or Document
Type Declaration.


This would help much in web development.

Additionally there should be a Tools->Web-Development->Validate Menu Item to run
the validator and see all validity errors if there are any or a "this file is
valid" message if it is so.

To increase speed even more than the browser's Cache, there should be a
configurable XML Catalog for the EntityResolver, where one can assign new System
Identifiers to Public Identifiers to be used instead of their original Public
Identifiers to access the local file system or lan instead of the WWW.

So one configures
"-//W3C//DTD XHTML Basic 1.0//EN" to be
"/usr/local/share/dtds/w3c/xhtml-basic/xhtml-basic10.dtd" instead of its
original system Id ("http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd").

Mozilla should come with the DTDs and a predifined Catalog for XHTML Basic,
XHTML 1.0, XHTML 1.1, SVG 1.0, MathML 2.0 and more when appropriate.

I fine graned setting of validity checking for different Document Types
distinguished for instance 

Reproducible: Couldn't Reproduce

Steps to Reproduce:
1.
2.
3.
Whiteboard: DUPEME
Bug 69799 and bug bug 22942 more or less depend on having a validating parser, 
but there doesn't seem to be a metabug for adding a validating XML parser to 
Mozilla. Implementors looking to work on this may be interested in 
<URL:http://xanthes.mozdev.org/>.
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: petersen → rakeshmishra
This is basically the validation bug, duping.

*** This bug has been marked as a duplicate of 22942 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.