Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Non-breaking space won't display properly in one instance

From: albruan@-------.---.(---------)
To: NULL
Date: 2/6/2008 12:16:00 PM

Well, the guy who was having problems with it came up with a solution.  It's 
not exactly efficient, but at least it works.  Every place where a space is 
needed between data fields, he has inserted the following statement:

<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

If that's all it takes, I'll modify my code that creates the XSL to use this 
statement everywhere a space is required.

-- 
Things are more like they are now than they ever have been before.


"Martin Honnen" wrote:

> AlBruAn wrote:
> 
> > <xsl:stylesheet version="1.0" 
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > 	<xsl:output method="html" encoding="iso-8859-1"/>
> 
> So your stylesheet has that output element. Does the resulting HTML 
> document have a meta element
>   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> then?
> 
> > In this case, I'm wanting a space between the State variable and the Zip 
> > variable, ala "City, State Zip".  It works fine on this machine, but displays 
> > as "City, StateÃ…Zip" on the other machine.
> 
> Which browser do you use to look at the transformation results? Have you 
> checked the settings of the browser? It could be set to ignore the 
> charset in the document.
> 
> 
> > The XSL is created by parsing HTML form letter templates created within an 
> > HTML editor control, replacing placeholder tags with <xsl:value-of 
> > select="xyx"> and </xsl:value-of> tags and replacing all occurrences of 
> >   with   since the transformation process can't handle  .  
> > Just prior to mailing out a batch of these form letters, the DB is queried 
> > for the pertinent information, which is returned in XML format.  The data is 
> > then transformed into a series of individual HTML files which are 
> > subsequently read in and converted into PDF format before being sent to a 
> > printer in the mail room for output.  All of this is accomplished within a 
> > .NET 2.0 solution.  
> 
> Can you show us the .NET 2.0 code that does the transformation and 
> creates the HTML output?
> 
> 
> -- 
> 
> 	Martin Honnen --- MVP XML
> 	http://JavaScript.FAQTs.com/
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent