So, I have quite a few XSLT files that I need to generate a preview for, however I do not have the corresponding XML files. I was wondering if it was possible to go through an XSLT file and create a list of the required fields for that XSLT? For example,
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="catalog/cd">
<tr>
<td><xsl:value-of select="title" /></td>
<td><xsl:value-of select="artist" /></td>
</tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I want to go from that XSLT to this: "/catalog/cd/title, /catalog/cd/artist" as they are the fields required by this XSLT, or set a default value for all of them so it outputs "/catalog/cd/title" for title and "/catalog/cd/artist" for artist.
just to give it a shot, also this won't work with multiple templates: