XML transformation using XSLT
I'm trying to convert one XML document into another wsing XSLT
XSLT:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/">
<base>
<opis> Typek </opis>
<aa>
<xsl:value-of select="a1/first" />
</aa>
<bb>
<xsl:value-of select="a1/last" />
</bb>
</base>
</xsl:template>
</xsl:stylesheet>
XML doc
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="a12b.xslt"?>
<a1>
<first>Gerek</first>
<last>Moszunsi</last>
</a1>
Alas IE6 is displaying HTML output -- not XML
Please help me! What should I do to get XML document as a result of transformation
# 1 Re: XML transformation using XSLT
I assume you are using IE to preform the transformation, in which case I'am not sure you can do that.
Refer to microsoft documentation.
khp at 2007-11-10 3:28:20 >

# 2 Re: XML transformation using XSLT
Thanx!
IE is doing transformation right, and in fact was doing so all the time. Problem was it don't display xml tags after transformation, so it looks like it was transforming to html.
It's just to download Internet Explorer Tools for Validating XML and Viewing XSLT Output
http://www.microsoft.com/downloads/details.aspx?FamilyId=D23C1D2C-1571-4D61-BDA8-ADF9F6849DF9&displaylang=en
Thanx anyway!