[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: koffice/lib/store
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2004-07-17 20:29:24
Message-ID: 200407172229.24126.nicolasg () snafu ! de
[Download RAW message or body]

On Saturday 17 July 2004 02:25, David Faure wrote:
> On Saturday 17 July 2004 02:03, Nicolas Goutte wrote:
> > If the first character is a space, it outputs it as a space, if the
> > second is a space too, it become <text:s>
>
> Yes, that's per the OASIS specification.
>
> > and here is the catch!
> >
> > <span> <s/>some text</span>
> > is the same as
> > <span><s/>some text</span>
> >
> > As <span> and <s> are both opening tags, the white space in between does
> > not count.
>
> That's not the case anymore. Following *your* advice :), we now use the
> "report whitespace-only data" feature of QXmlSimpleReader, so such
> whitespace *is* reported. Try it, it works :)

Okay, big sorry, my error. :-(

Reading section 3 of the XML specification closely, point 2 is for elements 
only having children. So if you have #PCDATA, the spaces are indeed part of 
the #PCDATA.

(The 3rd edition of XML 1.0 is a little clearer, as it adds comments and 
processing instrcutions too, so it is clearly that it is not a sort of 
trick.)

http://www.w3.org/TR/REC-xml

(...)

Have a nice day!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic