annotations in RNC not showing

Having trouble installing Oxygen? Got a bug to report? Post it all here.
XedMada
Posts: 13
Joined: Mon May 24, 2010 7:20 pm

annotations in RNC not showing

Post by XedMada »

In pervious versions an RNC file with comments (single hash)

Code: Select all

# comment
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

Code: Select all

## annotation
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.
XedMada
Posts: 13
Joined: Mon May 24, 2010 7:20 pm

Re: annotations in RNC not showing

Post 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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: annotations in RNC not showing

Post 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
George Cristian Bina
XedMada
Posts: 13
Joined: Mon May 24, 2010 7:20 pm

Re: annotations in RNC not showing

Post by XedMada »

the personal.xml file does show annotations.
XedMada
Posts: 13
Joined: Mon May 24, 2010 7:20 pm

Re: annotations in RNC not showing

Post 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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: annotations in RNC not showing

Post 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
George Cristian Bina
Post Reply