[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

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
saxon whitespace
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

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.