Subject: RE: [xsl] unwanted white space in HTML From: "Andy Joslin" <andy.joslin@xxxxxxxx> Date: Wed, 4 Sep 2002 09:32:09 +0100 |
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@xxxxxxxxxxxxxxx] Sent: 03 September 2002 13:36 To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] unwanted white space in H, Helder da Rocha | Thread | [xsl] xslt on schema, OComes |
RE: [xsl] String comparison, Michael Kay | Date | RE: [xsl] can I give xsl:number a s, Michael Kay |
Month |