XSLT template inspector

Are you missing a feature? Request it's implementation here.
Posts: 236
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany

XSLT template inspector

Post by Patrik » Fri Jul 07, 2017 6:01 pm


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.


Posts: 7019
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSLT template inspector

Post by Radu » Mon Jul 10, 2017 8:42 am

Hi Patrik,

We'll consider this although XSLT is complex and this can probably be done only if we run a transformation to the end and somehow retain all places in the XSLT where the XML element was processed.
The closest we have to this if you use our XSLT debugger and run the debugger to end is that you can move the caret in the "Output" tab and see which parts of XML and XSLT were used to generate it.

Radu Coravu
<oXygen/> XML Editor

Post Reply