XSLT Processor

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I want to display my XML file as HTML. I have a corresponding XSL file. I have included the reference to the XSL file inthe XML file. Im using Internet Explorer 8, but when I open the XML file, I just get the XSL file without the
data contained in the XML file.
XML:
<?xml version="1.0" encoding="utf-8"?><br/>
<?xml-stylesheet type="text/xsl C:PathForm1.xsl"?><br/>
<ParameterXml xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema <br/>
<Name>Form1</Name><br/>
<Description>Reference</Description><br/>
<Note /><br/>
<ValueNote /><br/>
<TypeId>12</TypeId><br/>
<DataFileId>0</DataFileId><br/>
</ParameterXml>

XSL:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"<br/>
xmlns:xsl=" http://www.w3.org/1999/XSL/Transform http://www.w3.org/1999/XSL/Transform
<xsl:template match="/ <br/>
<html><br/>
<body><br/>
Parameter: <xsl:value-of select="Name"/> <br/>
<h3>Description: <xsl:value-of select="Description"/></h3><br/>
<h3>Note: <xsl:value-of select="Note"/></h3><br/>
<h3>ValueNote: <xsl:value-of select="ValueNote"/></h3><br/>
<h3>TypeId: <xsl:value-of select="TypeId"/></h3><br/>
<h3>DataFileId: <xsl:value-of select="DataFileId"/></h3><br/>
</body><br/>
</html><br/>
</xsl:template>
</xsl:stylesheet>

Can anyone help me out?
John

View the full article
 
Back
Top