[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Whitespace question
At 06:07 18-09-2001, Ragulf Pickaxe wrote:
The problem, though, is that I only want ' ' preserved, not linefeed and all that kind of things - these are tagged in the xml document: If you're converting to HTML, then it should be safe to globally preserve spaces. That example would become <p>This is the document with a line feed<br>so this will be on a new line, but not this, which will be on the same line<b> Bold text</b> <i>Italic text, which will be place besides "Bold text" because of the 'whitespace problem'</i></p> which should be fine. The only possible problem is that you'll have a double-wide space between "not" and "this", but the normal space there is part of a larger text node and wouldn't have been stripped anyway. In general, if you're converting to HTML, preserving space is OK because the browser will do the right thing. There are exceptions, of course, but this doesn't seem to be one of them. -Chris -- Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc. DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training <URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ > PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|