xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27353] - Indenting doesn't work well
Date Tue, 02 Mar 2004 14:22:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27353

Indenting doesn't work well





------- Additional Comments From minchau@ca.ibm.com  2004-03-02 14:22 -------
Tetsuya,
a colleage of mine has this to say:
---------------------------------------------------------------------------
Brian, actually, the text you've quoted allows us to add extra whitespace 
between </b> and <c>.  If whitespace stripping is on, and the set of whitespace

preserving elements is just xsl:text, then both of the following would be 
correct serializations

<?xml version="1.0"?>
<a>
  <b>b</b>
<c>c</c>
</a>

<?xml version="1.0"?>
<a>
  <b>b</b>
  <c>c</c>
</a>

because, when stripped of whitespace, they would both look like this:

<a><b>b</b><c>c</c></a>

     One of the cases the text you've quoted was trying to restrict was the one 
in which there are non-whitespace characters involved.  For example, when the 
following is serialized, additional whitespace must not be introduced between 
</b> and <c>

<?xml version="1.0"?>
<a><b>b</b>x
<c>c</c></a>
---------------------------------------------------------------------------
So this bug is still alive.
Regards,
Brian Minchau

Mime
View raw message