Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 4th, 2005, 02:39 AM
Registered User
 
Join Date: Feb 2005
Location: Singapore, , Singapore.
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:(

Reply With Quote
  #2 (permalink)  
Old March 4th, 2005, 03:38 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
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.

Reply With Quote
  #3 (permalink)  
Old March 5th, 2005, 12:17 AM
Registered User
 
Join Date: Feb 2005
Location: Singapore, , Singapore.
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)

Reply With Quote
  #4 (permalink)  
Old March 7th, 2005, 01:20 PM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
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
Reply With Quote
  #5 (permalink)  
Old March 10th, 2005, 02:23 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
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?

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:19 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.