I've been working my way thru' Steve Muench's excellent Building Oracle XML Apps book and was wondering why the following doesn't work as I think it should. I have an XML file, King.xml :
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="KingToXML.xsl"?>
<ROWSET>
<ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
</ROW>
</ROWSET>
The KingToXML.xsl stylesheet looks like :
<xsl:stylesheet version="1.0" xmlns:xsl=" <xslutput method="xml" indent="yes"/>
<xsl:template match="/">
<Invitation>
<To>
<xsl:value-of select="ROWSET/ROW/ENAME"/>
<xsl:text> & Family</xsl:text>
</To>
</Invitation>
</xsl:template>
</xsl:stylesheet>
The output I expect is :
<?xml version = '1.0' encoding = 'UTF-8'?>
<Invitation>
<To>KING & Family</To>
</Invitation>
However when I try to view the King.xml file using Internet Explorer 5.5 all I get is :
& Family
Shouldn't Internet Explorer perform the transformation based upon the stylesheet and display the output as expected or am I misunderstanding the use of XSLT.
TIA
Cardy
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="KingToXML.xsl"?>
<ROWSET>
<ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
</ROW>
</ROWSET>
The KingToXML.xsl stylesheet looks like :
<xsl:stylesheet version="1.0" xmlns:xsl=" <xslutput method="xml" indent="yes"/>
<xsl:template match="/">
<Invitation>
<To>
<xsl:value-of select="ROWSET/ROW/ENAME"/>
<xsl:text> & Family</xsl:text>
</To>
</Invitation>
</xsl:template>
</xsl:stylesheet>
The output I expect is :
<?xml version = '1.0' encoding = 'UTF-8'?>
<Invitation>
<To>KING & Family</To>
</Invitation>
However when I try to view the King.xml file using Internet Explorer 5.5 all I get is :
& Family
Shouldn't Internet Explorer perform the transformation based upon the stylesheet and display the output as expected or am I misunderstanding the use of XSLT.
TIA
Cardy