Wrox Programmer Forums
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2005, 02:39 AM
Registered User
 
Join Date: Feb 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default ERROR

Why I always get this error???

The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.
/test.asp, line 13

line 13: Response.Write(xmlDocument.transformNode(xslDocume nt));


Conny:(

 
Old March 4th, 2005, 03:38 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Your stylesheet document is not well formed.That is why it is throwing this error.Check any special characters you have used as it is or Try opening the xsl document in internet explorer,it will show the exact error.

 
Old March 5th, 2005, 12:17 AM
Registered User
 
Join Date: Feb 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, thanks. i've solved that problem but another problem comes by.

this is the error

The character '<' cannot be used in an attribute value. Error processing resource 'http://localhost/imported.xsl'. Line 7,...

  <html>
--^

this is my xsl file.


<?xml version="1.0"?>
<xsl:stylesheet version ="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="html"/>

    <xsl:template match="/'>
        <html>
            <body>
                <xsl:for-each select="//quiz|//concept|//topic|//level|//question">
                    <p>
                        <xsl:apply-templates select="."/>
                    </p>
                </xsl:for-each>
            </body>
        <html>
    </xsl:template>

    <xsl:template match="topic">
        <xsl:text>True or False: </xsl:text><xsl:value-of select=".">
    </xsl:template>

    <xsl:template match="level">
        <b><xsl:value-of select="name()"/>:</b>
        <br/>
        <xsl:value-of select="."/>:</b>
    </xsl:template>

    <xsl:template match="question">
        <b><xsl:value-of select="name()"/>:</b>
        <br/>
        <xsl:value-of select="."/>:</b>
    </xsl:template>
</xsl:stylesheet>

Conny (confused)

 
Old March 7th, 2005, 01:20 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

http://www.w3.org/TR/REC-xml/

www.crmpicco.co.uk
www.milklemonadechocolate.uk.tt
 
Old March 10th, 2005, 02:23 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Can you post your XML code?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.