Can not enter RELAXNG annotation comments (##) as expected
Posted: Tue Dec 09, 2003 8:26 pm
I am translating an XSD spec to RELAXNG (compact syntax) and I want to include annotations like you can write in schema syntax (<xs:annotation> and then inside <xs:documentation>).
From reading the RELAXNG tutorial, I got the impression that comments that begin with a ## would be treated as annotations.
But when I type a ## inside the oXygen editor window, a third # character is added automatically, and any thing I type after the second # is replicated after the third character.
So if I want to write
inside oXygen I see:
BUT...
I left this seeming shadow comment alone and then used the trang plug-in to generate the equivalent .xsd file and I DO see the annotation generated inside. And if I save the RELAXNG spec to disk as a .rnc file, the extra comment syntax is NOT saved (inspecting the file using an ordinary text editor).
So perhaps this is a quirk of how oXygen handles annotation comments.
I am running on Mac OS X (10.3.1). By the way, the app is performing quite well for me under Max OS X otherwise.
Jim
From reading the RELAXNG tutorial, I got the impression that comments that begin with a ## would be treated as annotations.
But when I type a ## inside the oXygen editor window, a third # character is added automatically, and any thing I type after the second # is replicated after the third character.
So if I want to write
Code: Select all
## this is an annotation
Code: Select all
## this is an annotation# this is an annotation
I left this seeming shadow comment alone and then used the trang plug-in to generate the equivalent .xsd file and I DO see the annotation generated inside. And if I save the RELAXNG spec to disk as a .rnc file, the extra comment syntax is NOT saved (inspecting the file using an ordinary text editor).
So perhaps this is a quirk of how oXygen handles annotation comments.
I am running on Mac OS X (10.3.1). By the way, the app is performing quite well for me under Max OS X otherwise.
Jim