How to filterRNG Schema Annotation Hover Help
Posted: Sat Jan 23, 2016 1:43 am
I'm working with a docbook and when I hover over an element I get the annotations from the RNG schema for that element, which is great. However, I get all the annotations for that element regardless of context. Take the info element which is used in multiple patterns for multiple contexts (info in book, info in chapter, info in sections, etc.) So the hover help looks like:
A wrapper for information about a component or other block
A wrapper for information about a component or other block with a required title
A wrapper for information about a component or other block with only a title
A wrapper for information about a component or other block with only a required title
A wrapper for information about a component or other block without a title
This is complicated when I add my customization layer on top of docbook and extend info to meet my requirements. Now the hover help gives my custom annotations plus the annotations from core docbook that may or may not be accurate. Is there a way to filter out the hover help to display annotations for the pattern that is the current validation context? Also, is there a way to specify that the hover help source come from a custom namespace, that way I could disgard items from the a: namespace and instead use my own annotation namespace?
Steve
A wrapper for information about a component or other block
A wrapper for information about a component or other block with a required title
A wrapper for information about a component or other block with only a title
A wrapper for information about a component or other block with only a required title
A wrapper for information about a component or other block without a title
This is complicated when I add my customization layer on top of docbook and extend info to meet my requirements. Now the hover help gives my custom annotations plus the annotations from core docbook that may or may not be accurate. Is there a way to filter out the hover help to display annotations for the pattern that is the current validation context? Also, is there a way to specify that the hover help source come from a custom namespace, that way I could disgard items from the a: namespace and instead use my own annotation namespace?
Steve