Subject: Re: [xsl] White space strategies for mixed content From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 5 Nov 2019 23:00:33 -0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] White space strategies fo, Imsieke, Gerrit, le- | Thread | [xsl] Comparing node-sets or groups, Flanders, Charles E |
Re: [xsl] White space strategies fo, Imsieke, Gerrit, le- | Date | [xsl] Comparing node-sets or groups, Flanders, Charles E |
Month |