|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to avoid a blank line
> Hi all, > I've some xml document with > <div class="index"> ... </div> > > I would like to eliminate the div elements and use > <xsl:template match="div[@class='index']"/> > with apply-templates, which works fine but leaves me > with a blank line at the place of the div. > Are you generating HTML? Do you mean you have a blank line in the HTML source, or a blank line on the screen as shown by the browser? Whatever the answer, your template for the div element can't change things that were outside the div element, such as newlines before and after it. That kind of change has to be done in the template rules for those text nodes. Need to see more detail if you want more specific advice. Michael Kay http://www.saxonica.com/
|
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
|

Cart








