xml element tags modified when 1st letter of attribute typed

Oxygen general issues.
nwaanders
Posts: 2
Joined: Thu Jul 24, 2008 6:44 am

xml element tags modified when 1st letter of attribute typed

Post by nwaanders »

I suspect this is a bug (Oxygen/eclipse 9.3.0)
Using a (DITA) dtd, I type "<" and select a valid XML element to insert.
With the cursor at the end of the element name and before the ">", I type a space and then the first letter of a legal attribute. This results in the closing element tag being modified.

e.g.
Type "<li" and select "link".
<link></link> is inserted in the document.
With cursor at ^: <link^>, I type <space>h to select the href attribute.
The href attribute is selected and inserted, but the closing tag changes to </hlink> - thus:
<link href=""></hlink>

The same problem occurs when simply selecting an attribute from the list, but when the first letter in the attribute value is typed.
Nick
Mircea
Posts: 130
Joined: Tue Mar 25, 2003 11:21 am

Re: xml element tags modified when 1st letter of attribute typed

Post by Mircea »

Hello Nick,

We could not reproduce the behavior you mentioned, please give us more details about your installation:
1. OS Version
2. Java Version
3. Eclipse Version & build number (Help/About Eclipse SDK)
4. oXygen build number (Preferences/oXygen)

Also a screenshot with your current settings from the Preferences/oXygen/Editor/Content Completion page will be helpful.

Best regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
nwaanders
Posts: 2
Joined: Thu Jul 24, 2008 6:44 am

Re: xml element tags modified when 1st letter of attribute typed

Post by nwaanders »

OS = win xp sp2
Java = Sun 1.5.0_06
Eclipse 3.4.0 Build id: I20080617-2000
Oxygen 9.3 build 2008070902

Content completion settings:
Auto close last opened tag: Y
Automatically rename matching tag: Y
Use content completion: Y
Close the inserted element: Y
If it has no matching end tag Y
Add element content Y
Add optional content N
Add first Choice particle N
Case sensitive search Y
Cursor position between tags N
SHow all entities Y
Insert the required attributes Y
Insert the fixed attributes N
Show recently used items Y
Max number recent items shown 6
Learn attributes values Y
Learn on open document Y
Learn words N


HTH,
Nick
Mircea
Posts: 130
Joined: Tue Mar 25, 2003 11:21 am

Re: xml element tags modified when 1st letter of attribute typed

Post by Mircea »

Hi Nick,

The problem you mentioned was already resolved and included in the latest 9.3 build (2008072212) that you can find on our site:

http://www.oxygenxml.com/download_oxygenxml_editor.html

Best regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply