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

RE: Result still indented despite indent="no"

Subject: RE: Result still indented despite indent="no"
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Sun, 20 Feb 2005 07:13:11 -0800 (PST)
space elements
Hello Mr. Kay,
  Please pardon me, because my opinion is different
from yours. You have refered an Erratum section (E30).
Its not provided in the spec
URL(http://www.w3.org/TR/xslt). I cannot find it. Can
you please provide the URL?

You have said, erratum is to clarify "what happens if
there are conflicting strip-space and preserve-space
declarations". 

So if strip-space and preserve-space declarations are
not present in stylesheet, erratum will not apply. Can
we assume this? It seems to me - Erratum E30 *also*
defines the meaning of "whitespace-preserving element
names" (which was not defined before Erratum E30).

The erratum says..
"the set of whitespace-preserving element names is
specified by xsl:strip-space and xsl:preserve-space
top-level elements".

You are saying, for the example XML -
<pre>
 <b>bold</b>
 <i>italic</i>
</pre>

The first condition is true (i.e. The element name of
the parent of the text node is in the set of
*whitespace-preserving element names*).

Whereas, whitespace-preserving element names *is
specified by* xsl:strip-space and xsl:preserve-space
elements (given in Erratum E30).

Is'nt my understanding therefore right?

Regards,
Mukul

--- Michael Kay <mike@xxxxxxxxxxxx> wrote:

> Wrong. The first condition is true. The condition
> for an element name in a
> source document to be a member of the set of
> whitespace-preserving element
> names is defined in Erratum E30:
> 
> "For source documents, the set of
> whitespace-preserving element names is
> specified by xsl:strip-space and xsl:preserve-space
> top-level elements.
> Whether an element name is included in the set of
> whitespace-preserving
> names is determined by the best match amongst
> xsl:strip-space or
> xsl:preserve-space elements: it is included if and
> only if there is no match
> or the best match is an xsl:preserve-space element."
> 
> In other words, if the stylesheet doesn't specify
> xsl:strip-space for an
> element, then its whitespace text nodes must be
> preserved.
> 
> (You get the same answer from reading the original
> spec without the erratum;
> the purpose of the erratum is to clarify what
> happens if there are
> conflicting strip-space and preserve-space
> declarations.)
> 
> Michael Kay
> http://www.saxonica.com/




		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page  Try My Yahoo!
http://my.yahoo.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.