Home » Language IDEs » ServerTools (WTP) » Why does completion work with a DTD, but not with a schema?
|
Re: Why does completion work with a DTD, but not with a schema? [message #222555 is a reply to message #222550] |
Thu, 02 October 2008 14:46 |
Nick Sandonato Messages: 126 Registered: July 2009 |
Senior Member |
|
|
Hi David,
Try going to the XML menu item and choose Reload Dependencies under that.
David M. Karr wrote:
> 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?
>
|
|
| | |
Goto Forum:
Current Time: Fri Jan 17 22:30:26 GMT 2025
Powered by FUDForum. Page generated in 0.02839 seconds
|