Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » HTML 4.01 DTD validation problem
HTML 4.01 DTD validation problem [message #57620] Mon, 14 February 2005 08:07 Go to next message
Eclipse UserFriend
Originally posted by: ushakov.int.com.ru

Hi,

I suspect my problem is most likely a FAQ, but I still could not find an
answer...

I'm working on a schema that includes the HTML 4.01 DTD.

If I indicate 'http://www.w3.org/TR/html4/strict.dtd' as 'Schema location'
for the <import> directive, I get the following error:
http://www.w3.org/TR/html4/strict.dtd is an invalid XML schema file

If I make a local copy of this DTD and try to validate it, I get the
following error:
The declaration for the entity "ContentType" must end with '>'. ... line
81 ...
And line 81 contains a comment inside !ENTITY declaration.

I have added Xerces 2.6.2 to my configuration as prescribed by page
http://www.eclipse.org/webtools/wst/components/xml/xercesInf o.xml

I have Eclipse 3.1.0 Build id: 200412162000 on Windows.
My JVM: 1.5.0_01
My XSD: Version: 2.1.0 Build id: 200502100800
My EMF: Version: 2.1.0 Build id: 200502100800

Any ideas?

Thanks,
Sergey
Re: HTML 4.01 DTD validation problem [message #57646 is a reply to message #57620] Mon, 14 February 2005 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Sergey,

A .dtd is not a .xsd and won't even parse as XML. You will need to find
the .xsd rather than the .dtd.


Ushakov, Sergey wrote:

>Hi,
>
>I suspect my problem is most likely a FAQ, but I still could not find an
>answer...
>
>I'm working on a schema that includes the HTML 4.01 DTD.
>
>If I indicate 'http://www.w3.org/TR/html4/strict.dtd' as 'Schema location'
>for the <import> directive, I get the following error:
> http://www.w3.org/TR/html4/strict.dtd is an invalid XML schema file
>
>If I make a local copy of this DTD and try to validate it, I get the
>following error:
> The declaration for the entity "ContentType" must end with '>'. ... line
>81 ...
>And line 81 contains a comment inside !ENTITY declaration.
>
>I have added Xerces 2.6.2 to my configuration as prescribed by page
> http://www.eclipse.org/webtools/wst/components/xml/xercesInf o.xml
>
>I have Eclipse 3.1.0 Build id: 200412162000 on Windows.
>My JVM: 1.5.0_01
>My XSD: Version: 2.1.0 Build id: 200502100800
>My EMF: Version: 2.1.0 Build id: 200502100800
>
>Any ideas?
>
>Thanks,
>Sergey
>
>
>
>
Re: HTML 4.01 DTD validation problem [message #57679 is a reply to message #57646] Mon, 14 February 2005 14:39 Go to previous message
Eclipse UserFriend
Originally posted by: ushakov.int.com.ru

Thanks Ed,

it's honey to my soul to know that nothing seems to be wrong with my config
:)

Regards,
Sergey




"Ed Merks" <merks@ca.ibm.com> wrote in message
news:cuq1h5$g7$1@www.eclipse.org...
Sergey,

A .dtd is not a .xsd and won't even parse as XML. You will need to find
the .xsd rather than the .dtd.


Ushakov, Sergey wrote:

>Hi,
>
>I suspect my problem is most likely a FAQ, but I still could not find an
>answer...
>
>I'm working on a schema that includes the HTML 4.01 DTD.
>
>If I indicate 'http://www.w3.org/TR/html4/strict.dtd' as 'Schema location'
>for the <import> directive, I get the following error:
> http://www.w3.org/TR/html4/strict.dtd is an invalid XML schema file
>
>If I make a local copy of this DTD and try to validate it, I get the
>following error:
> The declaration for the entity "ContentType" must end with '>'. ...
line
>81 ...
>And line 81 contains a comment inside !ENTITY declaration.
>
>I have added Xerces 2.6.2 to my configuration as prescribed by page
> http://www.eclipse.org/webtools/wst/components/xml/xercesInf o.xml
>
>I have Eclipse 3.1.0 Build id: 200412162000 on Windows.
>My JVM: 1.5.0_01
>My XSD: Version: 2.1.0 Build id: 200502100800
>My EMF: Version: 2.1.0 Build id: 200502100800
>
>Any ideas?
>
>Thanks,
>Sergey
>
>
>
>
Re: HTML 4.01 DTD validation problem [message #593948 is a reply to message #57620] Mon, 14 February 2005 11:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33185
Registered: July 2009
Senior Member
Sergey,

A .dtd is not a .xsd and won't even parse as XML. You will need to find
the .xsd rather than the .dtd.


Ushakov, Sergey wrote:

>Hi,
>
>I suspect my problem is most likely a FAQ, but I still could not find an
>answer...
>
>I'm working on a schema that includes the HTML 4.01 DTD.
>
>If I indicate 'http://www.w3.org/TR/html4/strict.dtd' as 'Schema location'
>for the <import> directive, I get the following error:
> http://www.w3.org/TR/html4/strict.dtd is an invalid XML schema file
>
>If I make a local copy of this DTD and try to validate it, I get the
>following error:
> The declaration for the entity "ContentType" must end with '>'. ... line
>81 ...
>And line 81 contains a comment inside !ENTITY declaration.
>
>I have added Xerces 2.6.2 to my configuration as prescribed by page
> http://www.eclipse.org/webtools/wst/components/xml/xercesInf o.xml
>
>I have Eclipse 3.1.0 Build id: 200412162000 on Windows.
>My JVM: 1.5.0_01
>My XSD: Version: 2.1.0 Build id: 200502100800
>My EMF: Version: 2.1.0 Build id: 200502100800
>
>Any ideas?
>
>Thanks,
>Sergey
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: HTML 4.01 DTD validation problem [message #593973 is a reply to message #57646] Mon, 14 February 2005 14:39 Go to previous message
Eclipse UserFriend
Originally posted by: ushakov.int.com.ru

Thanks Ed,

it's honey to my soul to know that nothing seems to be wrong with my config
:)

Regards,
Sergey




"Ed Merks" <merks@ca.ibm.com> wrote in message
news:cuq1h5$g7$1@www.eclipse.org...
Sergey,

A .dtd is not a .xsd and won't even parse as XML. You will need to find
the .xsd rather than the .dtd.


Ushakov, Sergey wrote:

>Hi,
>
>I suspect my problem is most likely a FAQ, but I still could not find an
>answer...
>
>I'm working on a schema that includes the HTML 4.01 DTD.
>
>If I indicate 'http://www.w3.org/TR/html4/strict.dtd' as 'Schema location'
>for the <import> directive, I get the following error:
> http://www.w3.org/TR/html4/strict.dtd is an invalid XML schema file
>
>If I make a local copy of this DTD and try to validate it, I get the
>following error:
> The declaration for the entity "ContentType" must end with '>'. ...
line
>81 ...
>And line 81 contains a comment inside !ENTITY declaration.
>
>I have added Xerces 2.6.2 to my configuration as prescribed by page
> http://www.eclipse.org/webtools/wst/components/xml/xercesInf o.xml
>
>I have Eclipse 3.1.0 Build id: 200412162000 on Windows.
>My JVM: 1.5.0_01
>My XSD: Version: 2.1.0 Build id: 200502100800
>My EMF: Version: 2.1.0 Build id: 200502100800
>
>Any ideas?
>
>Thanks,
>Sergey
>
>
>
>
Previous Topic:HTML 4.01 DTD validation problem
Next Topic:Suitability of XSD for particular task
Goto Forum:
  


Current Time: Fri Jul 19 07:28:57 GMT 2024

Powered by FUDForum. Page generated in 0.03596 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top