Page 1 of 1

XSLT Input View not working

Posted: Fri Nov 27, 2020 12:46 pm
by yvesforkl
Hi,

I was delighted to learn about the feature "XSLT Input View" described here: https://www.oxygenxml.com/doc/versions/ ... -view.html

Unfortunately, I can't get it to work. Here is what I did.

1) Created the exact XML and XSLT files that are given as examples on that documentation page.
2) Associated the XSLT file to the XML file in the usual way (Configuring Transformation Scenario); successfully tested this association by Applying the Associated Transformation scenario to the input file.
3) In the XSLT file, opened Window > Show View > XSLT Input View from the menu as the documentation says. Result: No graphical tree view of the XML input file, but an "XSLT/XQuery input" panel at the right which only contains the following recommendation (translated back to English from German):

To achieve better content completion for the values "Match", "Select" and "Test", please create a scenario for this stylesheet.

4) It doesn't say which kind of scenario to create. I tried by defining a Validation Scenario exactly as explained here: https://www.oxygenxml.com/doc/versions/ ... -xslt.html
5) Then I applied that Validation Scenario to the stylesheet.

But still, nothing changed.

What do I need to do to obtain a graphical tree view of the XML input file that an XSLT stylesheet is associated with?

Best regards,

Yves

Re: XSLT Input View not working

Posted: Fri Nov 27, 2020 3:53 pm
by adrian
Hi,

Note that the XSLT/XQuery Input view can only be used when you're editing an XSLT stylesheet (or an XQuery). So, with the XSLT selected as the current editor you have to create/associate a transformation scenario of type "XSLT transformation" that specifies the input XML. It's this input XML from the "XSLT transformation" scenario that populates the XSLT/XQuery Input view.
If you've created/opened an XML and for it you created/associated a transformation scenario of type "XML transformation with XSLT" and specified an XSLT, this does not reflect in any way on the XSLT. This is strictly an association for the XML.
So, in short, a transformation scenario of type "XML transformation with XSLT" does not affect in any way the XSLT/XQuery Input view.

Regards,
Adrian

Re: XSLT Input View not working

Posted: Tue Dec 01, 2020 3:48 pm
by yvesforkl
Hi Adrian,

thank you very much for your clarification. (I should perhaps have read the manual more carefully.)

I can confirm that it works once I associate an XSLT transformation scenario with the XSLT stylesheet rather than with its intended XML input file (while the scenario still associates both with each other).

The XSLT Input View is a really awful feature for navigating the input tree and for developing XSLT stylesheets tp process the latter!

Thanks again,

Yves