Page 1 of 1

Visualizing the evolution of metrics

Posted: Mon Jul 27, 2020 1:04 pm
by ann.jensen
Hi,
I have been trying to use the evolution/generateDITATables.xsl stylesheet from https://github.com/oxygenxml/dita-ot-metrics using the sample XML files provided.
I have created a new transformation scenario in Oxygen XML editor of type XSLT that operates on the folder of xml files and applies the xsl url for evolution/generateDITATables.xsl.
When I try to run this transform I get an 'Access is denied' message for each of the 4 xml files. These files are stored in my user account AppData folder.
Any advice appreciated,
Regards,
Ann

Re: Visualizing the evolution of metrics

Posted: Mon Jul 27, 2020 1:16 pm
by Radu
Hi Ann,

If you look inside the "generateDITATables.xsl" it tries by default to open the XML sample files from a folder named "samples" relative to the XSLT location.

Code: Select all

<xsl:variable name="allReports" select="collection('samples/?select=*.xml')"/>
so if you have created a transformation scenario for the XSLT, the "XSL URL" in it needs to be set to ${currentFileURL}. The XML URL needs to be set also to ${currentFileURL} because it does not matter on what XML content it is applied as the XSLT will load the XML documents on its own, relative to the place where it's located. I think in your case you have set the XML URL field to point to a folder.

Regards,
Radu

Re: Visualizing the evolution of metrics

Posted: Mon Jul 27, 2020 1:26 pm
by Radu
One more thing, the email address you used to register on this forum seems to be no longer valid.
If you want help with changing it you can write us separately (support@oxygenxml.com).

Regards,
Radu

Re: Visualizing the evolution of metrics

Posted: Tue Jul 28, 2020 2:58 pm
by ann.jensen
Thank you Radu, that all worked great.
Regards,
Ann

Re: Visualizing the evolution of metrics

Posted: Tue Jul 28, 2020 3:00 pm
by Radu
Hi Ann,

Great, I'm curious if the evolution report will help you take decisions about the evolution of the project.

Regards,
Radu