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

RE: ampersand fun

Subject: RE: ampersand fun
From: "Martin Lampen" <mlampe@xxxxxxxxxxx>
Date: Tue, 27 May 2003 09:01:24 -0500
object required documentelement
Thanks, that code is still neater but it still results in an error page...

Microsoft VBScript runtime error '800a01a8' 

Object required: 'documentElement' 

/glossary.asp, line 22 

when I take the &amp; the page renders fine though

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 27 May 2003 14:48
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  ampersand fun



  Using IE 6 abd the xsl stylesheet except is as follows:

  <a class="glossary"><xsl:attribute
name="href">glossary.asp?uid=<xsl:value-of select="ID"/><xsl:text>&amp  ;</xsl:text>lid=<xsl:value-of select="PARENTID"/></xsl:attribute><xsl:value-of 
  ect="NAME" /></a>

That looks fine (assuming that is really select="NAME not ect="NAME",
and that you haven't really got space between the amp and the ";".
although it could be coded much more simply as 


<a class="glossary" href="glossary.asp?uid={ID}&amp;lid={PARENTID}">
  <xsl:value-of select="NAME" /></a>

Your problem may be nothing to do with the amp at all, are you sure that
ID, PARENTID, and NAME are returning the values that you expect?

when debugging it is important to look at the generated html file
directly, not just look at the rendering of the file in a browser,
which can hide many errors.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.