Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get documentation for element, attribute pattern? #274

Open
angelozerr opened this issue Oct 10, 2022 · 0 comments
Open

How to get documentation for element, attribute pattern? #274

angelozerr opened this issue Oct 10, 2022 · 0 comments

Comments

@angelozerr
Copy link

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:

  • one to compute the grammar
  • one to compute the documentation.

I tried to customize

public ElementAnnotationBuilder<Locator, VoidValue, CommentListImpl>
but as SchemaBuilderImpl have a private constructore we cannot extend it.

Many thanks for you help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant