Re: [xsl] zero width no-break space to prevent tag minimisation

Subject: Re: [xsl] zero width no-break space to prevent tag minimisation
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 17 Oct 2008 09:27:31 +0100
2008/10/16 Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>:
> Andrew,
>
> You've said you can't use the insert-a-comment workaround, although you
> haven't said why.

The comments are stripped out at a later stage, followed by more
stages of parsing/serialising which cause the then empty element to
use the empty element syntax...

> Would the reason you can't also preclude your using a similar hack, such as
>
> <div><span/></div>

Good idea... seems too simple :)  I'm trying to think back - why isn't
this the standard approach?  (why do we bother with inserting
comments, #160s etc?)



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread