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

Re: Unwanted added spaces in output code

Subject: Re: Unwanted added spaces in output code
From: Aaron Johnson <Aaron2.Johnson@xxxxxxxxx>
Date: Wed, 29 Sep 2004 10:56:43 +0100
php output spaces
I didn't include the code because it is a hard coded part of the style
sheet. 

<!--Aaron test footer area-->
    
    <tr>
        <td colspan="2" align="left" valign="top">
            
            <table width="100%" cellspacing="0" cellpadding="0">
          <tr>     
            <td colspan="3">
            
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td bgcolor="#bdced6"><img
src="/includes/assets/2004Design/spacer.gif" width="1" height="1" alt=""
/></td>
                </tr>
            </table>
            
            
            </td>
          </tr>
         
          
        
        <xsl:choose>
            <xsl:when test="$uePrintStyle = 'no'">
              <tr>
                <td id="footer">
                <p>Page last updated <xsl:value-of
select="$ueLastUpdate"/><br/>
                )<xsl:value-of select="$ueYear"/> University of the West of
England, Bristol<br/>
                <a accesskey="8"
href="http://www.uwe.ac.uk/info/termsAndConditions.shtml">Terms &amp;
Conditions </a> | 
                <a href="http://www.uwe.ac.uk/info/privacy.shtml">Privacy
Policy </a> | 
                <a accesskey="0"
href="http://www.uwe.ac.uk/info/accessibility.shtml">Accessibility </a> |
                <a accesskey="9"
href="http://www.uwe.ac.uk/help/feedback.shtml">Feedback </a></p>
        
                
                <p>
                <a href="http://www.uwe.ac.uk/textOnly.php">Text version</a>
|         
                <a href="{ueSelf}?uePrinter=1" target="_blank">Printer
friendly version</a><br/>
                <xsl:text>Contrast | </xsl:text>
                <xsl:choose>
                   
                    <xsl:when test="$ueContrast = 'HC'">
                        <a
href="http://www.uwe.ac.uk/textOnly.php?contrast=off">Standard</a> |
                        <a
href="http://www.uwe.ac.uk/textOnly.php?contrast=muted">Low</a> |
                    </xsl:when>
                   
                    <xsl:when test="$ueContrast = 'LC'">
                        <a
href="http://www.uwe.ac.uk/textOnly.php?contrast=off">Standard</a> |
                        <a
href="http://www.uwe.ac.uk/textOnly.php?contrast=high">High</a> |
                    </xsl:when>
                
                    <xsl:when test="$ueContrast = 'NC'">
                        <a
href="http://www.uwe.ac.uk/textOnly.php?contrast=high">High</a> |
                        <a
href="http://www.uwe.ac.uk/textOnly.php?contrast=muted">Low</a> |
                    </xsl:when>
                </xsl:choose>
                
        
                </p>
                </td>
                    <td align="center" valign="bottom"><a href="#"><img
src="/assets/2004design/backToTop.gif" alt="Back to top" width="23"
height="45" border="0"/></a><br/>
                  <span class="smallText"><a href="#">Back to
top</a></span></td>
              </tr>
              </xsl:when>
              <xsl:otherwise>
              <tr>
                  <td id="footer">
                <p>)<xsl:value-of select="$ueYear"/> University of the West
of England, Bristol<br/>
                (except acknowledged extracts from newspapers, journals,
etc)<br/></p>
                <p>Page last updated <xsl:value-of
select="$ueLastUpdate"/><br/></p>
                </td>
                </tr>
            </xsl:otherwise>
        </xsl:choose>
        </table>
        
        </td>
    </tr>
    
    
    
    </table>
    
        
    
    <!--end Aaron Footer -->

......................................................................

Aaron Johnson
GUI / XSLT development
Academic Technologies Group [ATG]
University of the West of England

ext: 81051
t: 0117 3281051 
www: http://atg.uwe.ac.uk/aaron
e: aaron2.johnson@xxxxxxxxx
......................................................................

......................................................................

SECURITY POLICY:

Please note that ATG will only accept
e-mail attachments in the following
formats:

.doc,.gif,.jpg,.mdb,.png,.xls,.zip,.psd

...as a mac user I will accept files
compressed using Dropstuff.
......................................................................

This communication is intended solely
for the use of the individual(s) to whom
it is addressed. Any opinions presented
are those of the author and do not
necessarily represent the University of
the West of England, Bristol.
......................................................................



> From: <Jarno.Elovirta@xxxxxxxxx>
> Reply-To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Date: Wed, 29 Sep 2004 12:38:37 +0300
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Subject: RE:  Unwanted added spaces in output code
> 
> Hi,
> 
>> I have a template to control a footer element in my page.
>> When processed, a
>> space is being added between the end of my image code and the
>> closing table
>> data tag, which is effectively adding a break. This is
>> causing my 1 pixel
>> graphic to expand to an ugly thick band.
>> 
>> <tr>
>>       <td bgcolor="#bdced6"><img alt="" height="1"
>> width="1"src="/includes/assets/2004Design/spacer.gif" /> </td>
>> </tr>
>> 
>> Any ideas how to stop this happening?
> 
> As you didn't show us your source or stylesheet, one can only suggest to make
> sure you don't generate the text node that contains the space. In practice,
> make sure in your stylesheet you don't have whitespace text nodes that are not
> ignored, and that you don't copy whitespace text nodes from your source.
> 
> Cheers,
> 
> Jarno - KiEw: Werkfragment
> 
> 
> 
> This incoming email to UWE has been independently scanned for viruses and any
> virus detected has been removed using McAfee anti-virus software
> 



This email has been independently scanned for viruses and any virus detected has been removed using McAfee anti-virus software

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.