Page 1 of 1

Code completion with Eclipse 3.2 and OxygenXML 8.1

Posted: Thu Mar 01, 2007 1:59 am
by ychaikin
Hi,

For some reason, the code completion is not working for me in Eclipse. It works just fine in the standalone OxygenXML for the exact same file.

Here is the code:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.opnotes.com/opnotes"
xmlns:opn="http://www.opnotes.com/opnotes"
elementFormDefault="qualified" attributeFormDefault="unqualified">

</xs:schema>
When I start typing <xs: all it does is suggest </xs:schema>. What do I get it to work?

Thanks,
Yaakov.

Re: Code completion with Eclipse 3.2 and OxygenXML 8.1

Posted: Thu Mar 01, 2007 2:17 am
by ychaikin
Hi,

For some reason, the code completion is not working for me in Eclipse. It works just fine in the standalone OxygenXML for the exact same file.

Here is the code:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.opnotes.com/opnotes"
xmlns:opn="http://www.opnotes.com/opnotes"
elementFormDefault="qualified" attributeFormDefault="unqualified">

</xs:schema>
When I start typing <xs: all it does is suggest </xs:schema>. What do I get it to work?

Also, when I press the Validate Document button in OxygenXML, it says Document is Valid. When I do the same thing (on the same file) in Eclipse, it gives me an error:

Code: Select all


There is no schema or DTD associated with the document. You can create an association either with the Associate Schema action or from the Options menu Preferences/Editor/Default Schema Association.
What's going on?

Thanks,
Yaakov.

Posted: Thu Mar 01, 2007 2:45 am
by ychaikin
Ok. NEVER MIND!

I accidentally associated the *.xsd with OxygenXML XML editor instead of XSD editor.

Everything works now.