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

RE: xml:output indent="yes" wins over xsl:preserve-sp

Subject: RE: xml:output indent="yes" wins over xsl:preserve-space/xsl:strip-space?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 22 May 2006 16:31:28 +0100
xml indentation algorithm
> In the source document, 
> rows and cells are not indented; I want them to be indented 
> in the result document. However, because cells can contain 
> mixed content, I want space to be preserved inside them.

If you've got mixed content, then it's best to avoid indenting (I think the
serialization spec actually says this). The indentation algorithm for the
XML output method doesn't treat mixed content specially.

You can always add whitespace at key points "by hand" using xsl:text.

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.