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

List:       koffice-devel
Subject:    Re: Fwd: KWord File Format
From:       Thomas Zander <zander () planescape ! com>
Date:       2002-04-24 9:10:51
[Download RAW message or body]

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 ?
-- 
Thomas Zander                                            zander@earthling.net
The only thing worse than failure is the fear of trying something new

[Attachment #3 (application/pgp-signature)]
_______________________________________________
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