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

List:       koffice-devel
Subject:    Re: Fwd: KWord File Format
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-04-26 22:07:31
[Download RAW message or body]

On Friday 26 April 2002 11:12, David Faure wrote:
> On Wednesday 24 April 2002 22:01, Nicolas Goutte wrote:
> > On Wednesday 24 April 2002 11:10, Thomas Zander wrote:
> > > On Wed, Apr 24, 2002 at 01:57:30AM +0200, Nicolas Goutte wrote:
> > > > > > To avoid this problem is exaclty the reason why I have introduce
> > > > > > the xml:space="preserve" in the DTD. Otherwise, it is allowed in
> > > > > > XML.
> > > > >
> > > > > Correct.
> > > > > But his 'homemade' xml parser will most probably not know about
> > > > > this attribute :)
> > > > >
> > > > > Anyway; I just added it to KWord, but IMO the #PCDATA always
> > > > > implied that this is how the tags should be handled. This is b/c
> > > > > the #PCDATA implies 'mixed content' in all mixed content elements
> > > > > whitespace is significant.
> > > >
> > > > xml:space="default" is the default (XML Specification section 2.10).
> > > >
> > > > However, section 2.10 tells also that a XML processor should pass all
> > > > non-markup characters to the application.
> > > >
> > > > Therefore it is up to the application to apply xml:space, not to the
> > > > XML processor.
> > > >
> > > > Therefore you are right and I have learnt something. :-)
> > > >
> > > > > Now if only Qt would listen to this tag :)
> > > >
> > > > Do you know another problem with it than:
> > > > <tag> </tag>
> > > > is the same as
> > > > <tag/>
> > > >
> > > > (I am not sure what XML and DOM specifications tell about this
> > > > problem.)
> > >
> > > Thats the one; I type a lot of spaces and end up with this in my
> > > maindoc.xml <TEXT xml:space="preserve">                          
> > > </TEXT>
> > >
> > > But when opening it my parag is empty.
> > >
> > > Anyone into a bit of Qt Hacking ?
> >
> > In the file qdom.cpp, in the method QDomDocumentPrivate::setContent, you
> > have to change to TRUE the last call to QXmlReader::setFeature (line
> > 5615.)
>
> Did you ask qt-bugs@ for a way to have this feature configurable?
> This is basically about a set*(bool) method and storing that bool....

No, I never had. At that time, I barely knew something about qt-bugs.

And I always thought that there was a reason for this behaviour. However, I 
must say that I still do not know which reason.

Have a nice day/evening/night!


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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