|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
XML error
I have just finished writing a simple XML / XSL script and when I try to transform them using ASP, I get the following error:
Error Type: msxml3.dll (0x80004005) The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document. /includes/content.asp, line 13 XML: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="content.xsl"?> <content> <entity id="glass"> <description>TEST</description> </entity> </content> XSL: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:for-each select="content/entity[@id='glass']"> <xsl:attribute name="STYLE"> font-family: Arial; font-size: 11px; font-weight: normal; </xsl:attribute> <table> <tr> <td><xsl:value-of select="description"/></td> </tr> </table> </xsl:for-each> </xsl:template> </xsl:stylesheet> Does anyone have any ideas what is causing this proble, if I run the XML file it displays without any problem. |
|
#2
|
|||
|
|||
|
reply
reinstall the MSXML 3..0 SDK.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XML error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|