[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xml:space preserve on element converted to html t
Indeed a non-breaking space, my technique for writing out the textarea is this: <xsl:value-of select="concat(., ' ')"/> Introducing the non-breaking space and guaranteeing that the textarea is written out as a non-collapsed element. Perhaps the better thing to do is to shove the tags into the result from a CDATA section above and below my value-of and drop the non-breaking space altogether. I'll give that a try now. Karl.. On Tue, Jun 7, 2011 at 1:12 AM, Michael Kay <mike@xxxxxxxxxxxx> wrote: > On 07/06/2011 07:32, Karl Stubsjoen wrote: >> >> I am converting an element with xml:space preserve to an HTML >> textarea. I am getting a bad character code, an A with a little tilde >> hat (sort of) as the first character in the textarea. > > A spurious capital A followed by a diacritic means that your content is in > UTF-8, but it's being displayed by software that doesn't realise it is in > UTF-8 (it probably thinks it is in Latin-1). If the display software is a > web browser, this means there's something wrong with the magic incantations > in the HTML Content-Type, the HTTP headers, the web server configuration > files, or some combination of the above. > > Michael Kay > Saxonica > > -- Karl Stubsjoen MeetScoresOnline.com (602) 845-0006
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|