Closed josteinaj closed 8 years ago
Aha! I wondered what that last commit was about, but that was before I saw this PR. Now it makes sense. Great stuff.
What is "rewriteURI"?
https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html#s.rewrite. OK I see. I'll see if there's a proper fix possible.
Allow scripts to inherit from scripts that inherit from scripts
If you have scripts A and B in the same module, and script C in either the same module or another module, then A needs to extend the generated version of B so that documentation and attributes are carried through from C.
Added support for
px:inherit="prepend|append"
on elements withpx:role="name|desc"
.For instance:
In the above example, the content of the
<p px:role="desc">
for the optionstuff
in the script that this script extends, will be prepended to the description in this script. So the generated content might be:Two newlines are inserted between the documentation in the script and the documentation in the script that is extended.
Allow referencing uris from same catalog in px:extends
The issue is that when loading documents referenced by px:extends using the XSLT
document
function; URIs from within the same catalog.xml does not seem to work. Using this patch, it works. However, corner cases using rewriteURI etc won't work, so it would be better to fix this in ProcessCatalogMojo.java. I'm just not quite sure how.Other