Hi Experts,
I am stuck into few lines of codes of xslt.
when I am using below line of code without any condtion then I am getting required reult with no error:
<xsl:variable name="productDataXml"><xsl:value-of select="document('/../productsData_staticTemplate.xml')" /></xsl:variable>
But when I am using same line under some condition its throwing an error.
<xsl:if test="$previewValue = 'true'">
<xsl:variable name="productDataXml"><xsl:value-of select="document('/../productsData_staticTemplate.xml')" /></xsl:variable>
</xsl:if>
I am getting below error:
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 60 errors detected.
I searched for the possible soultion in every XSL forum and thought of posting here as well. I will appreciate any pointer on this.
Thanks in Advance!
NK