Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Why does completion work with a DTD, but not with a schema?
Why does completion work with a DTD, but not with a schema? [message #222550] Wed, 01 October 2008 22:40 Go to previous message
David M. Karr is currently offline David M. Karr
Messages: 143
Registered: July 2009
Senior Member
Eclipse 3.3.2.

If I edit an XML file that's defined with a DTD, I can do completion on
element names. However, if it's instead defined with a schema, I don't
get any completion choices.

For instance, if I start with the following "faces-config.xml" file,
completion works fine:

--------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
</faces-config>
--------

However, if I instead use this:

--------
<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
</faces-config>
--------

then attempts to do completion give me empty lists.

Am I missing something simple?
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Determining the client project of an EJB project from a plugin
Next Topic:Getting Server Runtime ClasspathEntry
Goto Forum:
  


Current Time: Thu May 23 05:09:42 EDT 2013

Powered by FUDForum. Page generated in 0.01725 seconds