Hi,
************************************************
Below is my xml code
<?xml version="1.0" encoding="UTF-8"?>
<concept><title>TEST</title><body><title>CHECKING</title></body></concept>
************************************************
Below is my xslt code
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/">
<xsl:for-each select="concept">
<xsl:variable name="filename1"><xsl:value-of select="base-uri()" /></xsl:variable>
<xsl:value-of select="$filename1" />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
************************************************
Getting output
D:\test\Checking.dita
Instead of this it should display only
"Checking"
************************************************
Scenario
1] I need file name to generate the HTML file.
2] Level of folder may vary. [File should be in any folder on drive.]
Please suggest.
Cheers,
Mahesh