Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] Preserving whitespace between nodes - XSLT

From: "Michael Kay" <mike@--------.--->
To: <russ@--------------------.--->,<xml-dev@-----.---.--->
Date: 12/2/2005 8:14:00 PM
> I have an XSLT question that I'm unable to answer, and I'm starting to
> think there may not be an answer. Before I give up, allow me 
> to consult your expertise.

XSLT coding questions are best asked on xsl-list at mulberrytech.com. This
list prefers to discuss the meaning of life.
> 
> I'm trying to preserve significant whitespace between element nodes
> during transformation. 

Just avoid using MSXML3, and you should be fine.

Seriously: Microsoft's XSLT processor is the only one that throws away
whitespace text nodes by default. There's an option to suppress this
behavior, but only if you invoke the processor using its API, not if you run
it from an <?xml-stylesheet?> directive in internet explorer. If you do
that, the spaces disappear and there's nowt you can do about it.

Michael Kay
http://www.saxonica.com/


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