Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] XSLT2.0 compatibility

From: David Carlisle <davidc@--------->
To:
Date: 9/5/2006 5:59:00 PM
> How should I preserve the space of the xml for human reading? 
but you are preserving space used to indent the stylesheet elements and
copying that space to the output even though it has no relationship to
the elements in th eoutput tree, so using xml:space here doesn't help
(even when it doesn't cause an error)

> I found indent="yes" is not good enough.
what does it do wrong?
(Often when using indent=yes (which adds space) it's a good idea to use
<xsl:strip-space elements="*"/> 
so that space from the input osn't also copied Automatic indenting works
best when that is the _only_ source of white space text nodes.

David


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent