XSLT - How to pass dynamic file URL in document.
<xsl:for-each select="document($fileUrl)/SXXXXX/*/Field">
1) Use Parameter name instead of variable will resolve the issue
2) Pass Absolute path to a variable
<xsl:variable name="fileLocation" select="'C:/XXX/'"/>
3) Pass Relative Path to a variable
<xsl:variable name="fileUrl">../staging/<xsl:value-of select="$producttype"/>.xml</xsl:variable>
<xsl:for-each select="document($fileUrl)/SXXXXX/*/Field">
1) Use Parameter name instead of variable will resolve the issue
2) Pass Absolute path to a variable
<xsl:variable name="fileLocation" select="'C:/XXX/'"/>
3) Pass Relative Path to a variable
<xsl:variable name="fileUrl">../staging/<xsl:value-of select="$producttype"/>.xml</xsl:variable>