I have one XML file that I want to toggle between what content should be handled by my xslt file. Example:
<code>
<manual>
<use>1</use>
</manual>
<generated>
<use>0</use>
</generated>
<doc>
<localpath>content.xml</localpath>
</doc>
</code>
Then the content.xml has the same tags, i.e. generated and manual, where the data to be interpreted is. I have searched around and found this snippet:
<xsl:variable name="messages" select="doc"/>
<xsl:apply-templates select="document('$messages')"/>
The variable messages is populated correctly but the doc does not seem to be loaded. Or am I looking at it wrong should it be seen as content.xml is loaded into the <doc> tag so the navigation starts there and moves forward?
I am quite new to XSLT so please bear with me if this is obvious.