Code completion with Eclipse 3.2 and OxygenXML 8.1

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
ychaikin
Posts: 20
Joined: Thu Sep 09, 2004 9:23 pm

Code completion with Eclipse 3.2 and OxygenXML 8.1

Post by ychaikin » Thu Mar 01, 2007 1:59 am

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.

ychaikin
Posts: 20
Joined: Thu Sep 09, 2004 9:23 pm

Re: Code completion with Eclipse 3.2 and OxygenXML 8.1

Post by ychaikin » Thu Mar 01, 2007 2:17 am

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.

ychaikin
Posts: 20
Joined: Thu Sep 09, 2004 9:23 pm

Post by ychaikin » Thu Mar 01, 2007 2:45 am

Ok. NEVER MIND!

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

Everything works now.

Post Reply