Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Validating XML files with DTD in Catalog
Validating XML files with DTD in Catalog [message #171718] Tue, 20 June 2006 14:33 Go to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

I have a log4j.xml file with the following DOCTYPE declaration:

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

I have added "log4j.dtd" to Eclipse's XML Catalog, like:

URI:
file:///C:/Java/lib/logging-log4j-1.2.13/docs/api/org/apache /log4j/xml/log4j.dtd
Key Type: System ID
Key: log4j.dtd

But Eclipse complains that it can't validate (the src/resources/
directory mentioned is where the XML file lives):

```The file cannot be validated as the XML Schema "C:\Documents and
Settings\dserodio\workspace\xpto\src\resources\log4j.dtd (The system
can't find the specified file)" that is specified as describing the
syntax of the file cannot be located.´´´

Shouldn't it be able to find the DTD I specified in the XML Catalog?

Thanks in advance,
Daniel Serodio
Re: Validating XML files with DTD in Catalog [message #172068 is a reply to message #171718] Thu, 22 June 2006 14:58 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
Daniel,

You're correct, it should be able to locate the DTD. Please open a bug
against the wst.dtd component and I'll investigate. If you don't want to
open a bug and you respond as such I'll open one.

Thanks,

Lawrence
Re: Validating XML files with DTD in Catalog [message #172180 is a reply to message #171718] Fri, 23 June 2006 04:41 Go to previous message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
This doesn't work because the XML Catalog expects fully qualified 'keys'.
The XML Catalog UI really should provide error feedback when one enters a
'baseName' pattern.

For more detail see http://bugs.eclipse.org/bugs/show_bug.cgi?id=104001.
Previous Topic:Unable to install WTP on Eclipse 3.1.2 on OS X Tiger
Next Topic:JSP as a second class citizen
Goto Forum:
  


Current Time: Thu Dec 26 16:58:09 GMT 2024

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

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

Back to the top