[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: ampersand fun
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 & 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>& ;</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}&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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|