Subject: RE: Saxon html includes unwanted white space in anchor tag From: Kay Michael <Michael.Kay@xxxxxxx> Date: Thu, 3 Feb 2000 11:25:59 -0000 |
Mike ALsup wrote some while ago: > I'm having trouble when trying to use an html image tag > inside an anchor tag using the following stylesheet: > > <a href="#"><img border="0" src="image.jpg"/></a> > > The saxon v5.1 processor generates the following HTML: > > <a href="#"> > <img src="image.jpg" border="0"> > </a> The XSLT spec says, with respect to indenting in HTML, "the method may add or remove whitespace as it outputs the result tree, so long as it does not change how a user agent would render the output". So SAXON's behaviour here is clearly wrong. I'm now wondering what algorithm would meet the requirement and still satisfy the implicit expectation of "indenting". Does anyone have any suggestions? Do I have to consider each element type individually? Otherwise, I'm tempted to do the simplest thing that conforms to the letter of the spec and make indent="yes" a null operation. Meanwhile of course the undesirable effects can be eliminated by setting indent="no". Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Selecting stylesheet at runtime, Steve Muench | Thread | Re: Saxon html includes unwanted wh, David Carlisle |
Selecting stylesheet at runtime?, Martin Rothschink, A | Date | Re: Saxon html includes unwanted wh, David Carlisle |
Month |