|
 |
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 .
|
 |
|
|
 |

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
|
|
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:(
|

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
|
|
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.
|

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
|
|
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)
|

March 7th, 2005, 01:20 PM
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|

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
|
|
Can you post your XML code?
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
Insert Query Error & Run-Time Error 3022 |
DavidWE |
Access |
1 |
July 31st, 2008 12:17 PM |
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 10: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 11:11 AM |
|
 |