[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Javascript inside XSL(Just when I think I understa

Subject: Re: Javascript inside XSL(Just when I think I understand)
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Thu, 31 Jan 2002 09:48:40 +0100
"Gene LaCava" <e.f.lacava@xxxxxxxxxxx> wrote:
> Can anyone help me I'm really at a loss.....
> I have narrowed my error down to this chunk of javascript code  inside my

Well, it's not the java script.

> XSL file... The orginal message is below....The error is the same
> Error loading XSL Document :
> - ----------------------------
> Error Code : -1072896766
> Reason : A string literal was expected, but no opening quote character was
> found.

The error message is telling. First:
 "Error loading..."
A hint that the parser had difficulties. This means: the XSL document is
not valid XML. As i suppose you don't validate, this means it is not
well-formed XML.

> Reason : A string literal was expected

Read carefully through the XML spec where string literals are expected...
Spoiler space
Correct! It most likely means "Attribute values" here.

> ...but no opening quote character was found.

Ergo: you have an Attribute value which doesn't start with a " or ',
or in other words, there is an unquoted attribute. This is valid HTML
but not valid in XML (or XSL for that matter).

Now, after you discovered what the error message actually says, search
for /=[ ]*[^"']/ and you get the culprit:

> <table width="673" border="0" align="center" cellspacing="0"
> cellpadding="0">
>  <tr align="CENTER" valign="middle">
>  <td class="gntabon" height=20><a href="http://townhome">Home</a></td>
There may be more of this kind of errors.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.