[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: White space strategies for mixed content

Subject: Re: White space strategies for mixed content
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Nov 2019 23:00:33 -0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.