This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: unwanted white space in HTML
- From: "Andy Joslin" <andy dot joslin at ri3k dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 4 Sep 2002 09:32:09 +0100
- Subject: RE: [xsl] unwanted white space in HTML
- Reply-to: xsl-list at lists dot mulberrytech dot com
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 > 1">s</xsl:if>.</td>
</tr>
-----Original Message-----
From: Zakon, Stuart [mailto:stuart_zakon@medcohealth.com]
Sent: 03 September 2002 13:36
To: 'xsl-list@lists.mulberrytech.com'
Subject: [xsl] 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