Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320033 - Validator rejects doctype without system ID
Summary: Validator rejects doctype without system ID
Status: RESOLVED WONTFIX
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.xml CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-15 15:44 EDT by benson margulies CLA
Modified: 2010-07-26 06:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description benson margulies CLA 2010-07-15 15:44:54 EDT
Build Identifier: 20100617-1415

My XML file starts with:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE regexps PUBLIC "-//basistech.com//DTD RLP Regular Expression Config 1.0//EN" >

and gets flagged with:


Description	Resource	Path	Location	Type
The system identifier must begin with either a single or double quote character.	test-regexpset.xml	/config_db/src/test/resources/com/basistech/configdb/dao	line 2	XML Problem


Reproducible: Always

Steps to Reproduce:
Make an XML file with a DOCTYPE like the one in the Details, and watch for the error.
Comment 1 Rakesh CLA 2010-07-22 08:16:07 EDT
This DOCTYPE Declaration is wrong .You are missing SYSTEM id that should come right after public id.
Your example should look like:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE regexps PUBLIC "-//basistech.com//DTD RLP Regular Expression Config
1.0//EN" "System id here">
Reference:
http://msdn.microsoft.com/en-us/library/ms256059.aspx
Comment 2 benson margulies CLA 2010-07-25 15:58:45 EDT
The system ID is optional in the grammar. 

http://www.w3.org/TR/2008/REC-xml-20081126/

Production [28].
Comment 3 Nitin Dahyabhai CLA 2010-07-26 06:20:18 EDT
Following it down to [75] of the recommendation, it is not.