RE: [xsl] ampersand fun

Subject: RE: [xsl] ampersand fun
From: "Martin Lampen" <mlampe@xxxxxxxxxxx>
Date: Tue, 27 May 2003 09:01:24 -0500
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: [xsl] 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.


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:

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread