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

RE: Special letters in XML - list ?

Subject: RE: Special letters in XML - list ?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 22 Jul 2005 19:34:47 +0100
special letters
> from here I found out that XSLT removes special letters put 
> directly into
> the XSLT file. Instead one has to insert thoese lettter in a 
> special form
> (like &#xa; for a new line, etc.).

It might give that impression, but you need to understand the processing
model in more detail.

Remember first that both the source document and the stylesheet are first
processed by an XML parser. The XML parser performs certain operations such
as normalization of line endings, normalization of attribute values, and
expansion of character and entity references.

Then the XSLT processor does some additional processing to remove whitespace
text nodes. In the source document, all whitespace text nodes selected by
xsl:strip-space are removed. In the stylesheet, all whitespace text nodes
other than those contained by xsl:text are removed.

Then your stylesheet executes to produce a result tree.

Then your result tree is serialized.

Each of these processes performs certain manipulations on your data, and to
understand how the output relates to the input it's not sufficient to just
give you a list of "special letters".

Michael Kay

Current Thread


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.
First Name
Last Name
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.