Page 1 of 1

seeing annotations when browsing an xml document

Posted: Fri Aug 27, 2004 8:59 pm
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

Posted: Sat Aug 28, 2004 9:23 am
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

Re: seeing annotations when browsing an xml document

Posted: Sat Aug 28, 2004 9:40 am
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

annotations

Posted: Sun Aug 29, 2004 9:38 am
by dominik
Ok, nm, I will submit another request for the content completion.

- Dominik

Posted: Sun Aug 29, 2004 10:03 am
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