Page 1 of 1
annotations in RNC not showing
Posted: Sat Jan 15, 2011 12:31 am
by XedMada
In pervious versions an RNC file with comments (single hash)
showed up as annotations when editing files with that schema assigned (tool tips and the annotations page of the model view.) This no longer seems to be the case in 12.1. I've also tried adding a second hash
for true annotations but these do not show either. This is the case both with and without the Editor/Content Completion/Annotations/"Use all Relax NG annotations as documentation" option. Is there something else im missing here?
Annotations are still working for other file types ive tried like schematron.
Re: annotations in RNC not showing
Posted: Sat Jan 15, 2011 12:34 am
by XedMada
oh, ive also tried manually specifying
Code: Select all
namespace a = "http://relaxng.org/ns/compatibility/annotation/1.0"
to no avail, but this shouldn't be necessary anyway.
Re: annotations in RNC not showing
Posted: Mon Jan 17, 2011 3:51 pm
by george
Please try opening the [oXygen]/samples/relaxng/personal.xml file. This refers to personal.rnc as schema and I just tested it and annotations appear when I try to edit the document, for example when adding a new person element.
Best Regards,
George
Re: annotations in RNC not showing
Posted: Tue Jan 18, 2011 8:04 pm
by XedMada
the personal.xml file does show annotations.
Re: annotations in RNC not showing
Posted: Tue Jan 18, 2011 8:50 pm
by XedMada
After a bit more testing, it looks like annotations are not working beyond an external call im making to another .rnc file early in the schema. Annotations above this work (there is only one, thus why I didn't catch it til now), below this do not work. If I remove the annotation for the external reference they all seem to show again.
e.g.
Code: Select all
## Foo Annotation
external "foo.rnc"
breaks all annotations past it unless I remove the "Foo Annotation" line.
Is this a bug or can you not annotate an external pattern? I cant seem to find any documentation in the rnc spec stating this, but im not an expert.
Re: annotations in RNC not showing
Posted: Wed Jan 19, 2011 12:30 pm
by george
I will look into this - it looks like an issue on how we extract the annotations. I will let you know as soon as I have more details.
Regards,
George