Re: [xml] xmllint --noblanks will not strip ignoreable whitespaces
- From: Christian Glahn <christian glahn uibk ac at>
- To: Daniel Veillard <veillard redhat com>
- Cc: xml gnome org
- Subject: Re: [xml] xmllint --noblanks will not strip ignoreable whitespaces
- Date: Thu, 16 May 2002 13:34:09 +0200
On Thu, May 16, 2002 at 06:52:23AM -0400, Daniel Veillard wrote:
On Thu, May 16, 2002 at 12:49:04PM +0200, Christian Glahn wrote:
hi,
i found this problem with libxml2 2.4.21 and did not try if it was introduced
with older versions:
when calling xmllint --noblanks it will not strip ignoreable whitespaces.
if seems "xmlKeepBlanksDefaultValue" is simply ignored on any parsing
process, since either setting this variable directly or by using
xmlKeepBlanksDefault().
Sorry, I can't reproduce this !
ok, i found the spec a bit unclear at this point (or is it just me?):
the document i tested was:
<x>
<xml>
test
</xml>
</x>
i assumed the leading and trailing spaces (including the \n) within the xml
tag as ignoreable whitespace in order of section 2.10 of the XML spec. those
are not stripped out. now i wonder if the leading and trailing whitespace
are ignoreable or not. -- and which should be the correct behaviour of the
parser.
i ask this because XSLT ignores any leading or trailing whitespace within
the element's characters.
christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]