Open angelozerr opened 2 years ago
I have implemnted successfuly the XML completion based on RelaxNG by using Pattern and visitor.
Now i would like to get the documentation for a given element, attribute and I noticed that ElementPattern doesn't store the annotation documentation.
It seems that https://github.com/relaxng/jing-trang/tree/master/mod/rng-schema/src/main/com/thaiopensource/relaxng/edit can parse and get the documentation of RelaxNG grammar, but it means that I need to parse twice the grammar:
I tried to customize https://github.com/relaxng/jing-trang/blob/84ec6ad578d6e0a77342baa5427851f98028bfd8/mod/pattern/src/main/com/thaiopensource/relaxng/pattern/SchemaBuilderImpl.java#L766 but as SchemaBuilderImpl have a private constructore we cannot extend it.
Many thanks for you help.
I have implemnted successfuly the XML completion based on RelaxNG by using Pattern and visitor.
Now i would like to get the documentation for a given element, attribute and I noticed that ElementPattern doesn't store the annotation documentation.
It seems that https://github.com/relaxng/jing-trang/tree/master/mod/rng-schema/src/main/com/thaiopensource/relaxng/edit can parse and get the documentation of RelaxNG grammar, but it means that I need to parse twice the grammar:
I tried to customize https://github.com/relaxng/jing-trang/blob/84ec6ad578d6e0a77342baa5427851f98028bfd8/mod/pattern/src/main/com/thaiopensource/relaxng/pattern/SchemaBuilderImpl.java#L766 but as SchemaBuilderImpl have a private constructore we cannot extend it.
Many thanks for you help.