Given somefile.xslt, which calls the datafile.xml file, is there a script that will output the report from node in the datafile.xml file that somefile.xslt is not called?
Obviously, a visual check of each file can be used as a basis for analysis, but I'm looking for an automatic method.
For example, my xslt contains xpath as:
<xsl:for-each select="//somenode/somesubnode/@attribute">
And it is expected that the xml data source will contain somenode / somesubnode data structure . However, if it contains a someothernode data structure that is not the root element or child of the xpath invoked in XSLT, it must be part of the unused nodes report.
source
share