[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to avoid a blank line

Subject: RE: How to avoid a blank line
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 21 Oct 2005 08:47:38 +0100
div blank
> 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/

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.