P
Pathik
Hi All,
I am New to xml. Currently I am trying to transform one xml file to
another file using xslt
my xml file is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xml" href="test.xsl" version="2.0"?>
<Data>
<Header>
<ID>JD014</ID>
<Test>true</Test>
</Header>
</Data>
and xsl file is as follows:test.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform">
<xsl:template match="/">
<xsl:for-each select="Header">
<xsl:value-of select="ID"></xsl:value-of>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I m trying to print the value of ID in output . But instead of
transformation Internet explorer simply
shows input file as it is.
Please check this and let me know where i am wrong.
Thanks and Regards,
Pathik
I am New to xml. Currently I am trying to transform one xml file to
another file using xslt
my xml file is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xml" href="test.xsl" version="2.0"?>
<Data>
<Header>
<ID>JD014</ID>
<Test>true</Test>
</Header>
</Data>
and xsl file is as follows:test.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform">
<xsl:template match="/">
<xsl:for-each select="Header">
<xsl:value-of select="ID"></xsl:value-of>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I m trying to print the value of ID in output . But instead of
transformation Internet explorer simply
shows input file as it is.
Please check this and let me know where i am wrong.
Thanks and Regards,
Pathik