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 [EMAIL PROTECTED]  2004-03-02 06:03 -------
Tetsuya,
there is a specification about indenting.  Unfortunately it isn't complete, or 
perhaps all that clear.  One thing that is missing for instance is how to indent
and what the indentation character should be (space, tab ...).

But it does say something in section 16.1 of XSLT 1.0 ("XML Output Method") 
(http://www.w3.org/TR/xslt).  Here is a bit of it:

[[
The xml output method should use an algorithm to output additional whitespace 
that ensures that the result if whitespace were to be stripped from the 
output using the process described in [3.4 Whitespace Stripping] with the set 
of whitespace-preserving elements consisting of just xsl:text 
would be the same when additional whitespace is 
output as when additional  whitespace is not output.
]]

This extra whitespace between </b> and <c> is implicitly an <xsl:text> element 
with whitespace in it.  The clause above in 16.1 applies, so we can't add more 
whitespace to the existing whitespace. The output of such an xsl:text element
must be same as when indenting is "yes" or when it is "no".  If we add extra 
whitespace in this situation we can't tell later on if it came from indentation 
or from the xsl:text element.

Regards,
Brian Minchau
XSLT Development,
IBM Toronto

Reply via email to