XSLT template inspector
Posted: Fri Jul 07, 2017 6:01 pm
Hi,
this is more a vague idea than a request, but it might be usefull...
While the template pattern mechanism of XSLT is very comfortable to extend it has the same deficit as CSS has: On large projects it is difficult to maintain the overview which template will match (first) on a specific node. For instance on the PDF transformation for DITA-OT you can spend quite some time on finding the right template you need to overwrite.
For CSS you have already provided the CSS inspector which helps a lot when modifying your stylesheets. And I could imagine this would also be the case for XSLT.
So the idea would be that you can place the cursor on some XML node and have an XSLT-file (or project) selected. Now oXygen will display for each mode (e.g. in different tabs) the list of templates that would match this node - ordered by their priority, considering includes and imports, default priority, default templates, ...
As I said: just an uidea you might think about.
Patrik
this is more a vague idea than a request, but it might be usefull...
While the template pattern mechanism of XSLT is very comfortable to extend it has the same deficit as CSS has: On large projects it is difficult to maintain the overview which template will match (first) on a specific node. For instance on the PDF transformation for DITA-OT you can spend quite some time on finding the right template you need to overwrite.
For CSS you have already provided the CSS inspector which helps a lot when modifying your stylesheets. And I could imagine this would also be the case for XSLT.
So the idea would be that you can place the cursor on some XML node and have an XSLT-file (or project) selected. Now oXygen will display for each mode (e.g. in different tabs) the list of templates that would match this node - ordered by their priority, considering includes and imports, default priority, default templates, ...
As I said: just an uidea you might think about.
Patrik