Subject: RE: [xsl] Operation of indent="yes" in Saxon 6.5.2 vs MSXML From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Wed, 26 Jun 2002 13:47:15 +0100 |
> > Am I correct in assuming you don't look at the whitespace > already present between tags before deciding what whitespace to add? > Almost. Saxon outputs indentation (newline + spaces) before a start tag if there have been no non-whitespace characters output since the last start or end tag. It applies the same rule to end tags, except that end tags are written on the same line as their start tag if there are no newlines or child elements in the element content. I agree this could be refined, but there is no obviously correct algorithm. I would advise using xsl:strip-space when you use indent="yes" for best results. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Operation of indent="yes", Jeni Tennison | Thread | [xsl] comparison of xslt-processors, ChivaBaba |
Re: [xsl] xml-stylesheet p.i. and o, David Carlisle | Date | [xsl] Need XPath Reference Guide, Scott Purcell |
Month |