[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Saxon html includes unwanted white space in anchor tag
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
|
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
|