[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: White space strategies for mixed content
Hi, To emphasize what Gerrit has noted: it's not necessarily a trivial exercise to do it correctly even when we have prior knowledge regarding whitespace-related semantics of elements (element-only content, mixed-content ... .'preformat'?). When we do, however, we have a chance. I usually think in terms of three categories: where whitespace-only nodes may be discarded (or introduced) without doing damage; where whitespace can (maybe should) be collapsed or munged, and where it shouldn't be messed with. Of these, the last is easy to forget but also easy to understand. Arguably, all three are different problems with different solutions. The example Gerrit gives is a nice illustration of how operations can go wrong when these different problems are confused or treated as if they were the same. Cheers, Wendell
|
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
|