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

RE: unwanted white space in HTML

Subject: RE: unwanted white space in HTML
From: "Andy Joslin" <andy.joslin@xxxxxxxx>
Date: Wed, 4 Sep 2002 09:32:09 +0100
eliminating white space in html
Hi Stuart

Perhaps you could do something like the following where you wrap the
logic in a variable, and then display a copy-of the result as your link.
That way you can avoid polluting the html too much and it'll help you
keep the html result on one line.

cheers

Andy


<xsl:variable name="author" select="/umltest/@author" />

<xsl:variable name="link-result">
<xsl:if test="$mode = 'questions'"><a class="navigate"
href="javascript:viewAnswer('{$author}', {$question-number})"><img
src="forward-arrow.gif"  alt="Answer"  border="0"/></a></xsl:if>
<xsl:if test="$mode = 'answers'"><a class="navigate"
href="javascript:viewQuestion('{$author}', {$question-number})"><img
src="backward-arrow.gif"  alt="Question"  border="0"/></a></xsl:if>
</xsl:variable>


<tr>
<td class="answer-count"><xsl:copy-of select="$link-result"/> This
question has <xsl:value-of select="@answer-count"/> correct
answer<xsl:if test="@answer-count &gt; 1">s</xsl:if>.</td>
</tr>





-----Original Message-----
From: Zakon, Stuart [mailto:stuart_zakon@xxxxxxxxxxxxxxx] 
Sent: 03 September 2002 13:36
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  unwanted white space in HTML


I found some unwanted white space in my HTML output that I am not sure
how 
to eliminate:

________________________________________________________________________
This e-mail and its attachments are confidential. If you are not the intended recipient of this e-mail message, please telephone or e-mail us immediately, delete this message from your system and do not read, copy, distribute, disclose or otherwise use this e-mail message and any attachments. 

Although ri3k Limited believes this e-mail and any attachments to be free of any virus or other defect which may affect your computer, it is the responsibility of the recipient to ensure that it is virus free and ri3k Limited does not accept any responsibility for any loss or damage in any way from its use.

ri3k Limited
Registered in England: 10-12 Ely Place, London, EC1N 6RY
Company Number: 3909745

 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.