Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Newbie Question >Thread Next - Re: Newbie Question Re: Newbie QuestionTo: NULL Date: 7/1/2008 3:57:00 PM rhino wrote: > I also tried putting multiple > spaces within the <xsl:text> </xsl:text> block and was surprised that only > one space was displayed no matter how many I put there. That's not XSLT behavior, but browser behavior. Remember, once you generate the HTML it's processed like any other HTML document. and browsers are free to readjust whitespace as they see fit. In general, XML tools consider   to be just another way of writing the space character, so it's slightly surprising when you say that change produced different results on screen. I strongly suspect other XSLT processors would handle it differently, so I wouldn't recommend relying on this trick. The usual HTML solution when you need a specific number of spaces and aren't willing to go all the way to <pre> markup is to use the non-breaking-space character. XSLT doesn't normally know the entity name , but you can specify that character using the numeric character reference  . | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
