seeing annotations when browsing an xml document

Are you missing a feature? Request its implementation here.
dominik
Posts: 6
Joined: Wed Aug 04, 2004 3:16 am

seeing annotations when browsing an xml document

Post by dominik »

I really like being able a feature which allows to see annotations when I create a new xml document. It would be great to be able to see the annotations when browsing an existing xml document.

Of course it's quite possible that it's already possible and I haven't found the appropriate key shortcut.

thanks,

- Dominik
george
Site Admin
Posts: 2097
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Dominik,

Do you mean to be able to see the annotation for the root element when you create a new XML based on an XML Schema ? I just added this feature request to our bugzilla.

To see the annotation while browsing a document make visible the model view (in the standalone version it is in the same tabbed pane as the project view) and just place the caret inside an element. You should be able to see the annotation in the model view together with some more schema related information about that element. Another way is to press CTRL+Space when you have the carret inside the tag name and the content completion on request should popup and you should be able to select there the element if not already automatically selected and see the annotation in the annotation popup that appears next to the content completion one.

Best Regards,
George
dominik
Posts: 6
Joined: Wed Aug 04, 2004 3:16 am

Re: seeing annotations when browsing an xml document

Post by dominik »

Thanks George,

it works fine - I have not realized that model view shows annotations as well - my bad.
A quick note on content completion. Is there a way to display available elements in the order they should appear in xml (as defined in schema file) instead of the alphabetical order?

thanks,

- Dominik
dominik
Posts: 6
Joined: Wed Aug 04, 2004 3:16 am

annotations

Post by dominik »

Ok, nm, I will submit another request for the content completion.

- Dominik
george
Site Admin
Posts: 2097
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Dominik,

Oxygen sorts the proposals in the content completion popup for several resons

1. This allows selecting an element based on a prefix.
2. The contennt model is not always sorted, for instance in an XML Schema one can have an all model or one can use substitution groups.

You may want to keep the model view visible while editing and lookup there the content model for the current element.

Best Regards,
George
Post Reply