[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-23 21:53:21
[Download RAW message or body]
On Tue, Apr 23, 2002 at 10:59:50PM +0200, Nicolas Goutte wrote:
> On Tuesday 23 April 2002 22:06, Thomas Zander wrote:
> > I am a bit confused that this poses problems; your problem only appears
> > when you put the tabs inbetween the
> > <TEXT> and the </TEXT>
> > tags.
> >
> > This seems a strange practice to me.
> >
> > Putting the tabs in front of any close statement is generally a depricated
> > practice in XML and IMO does not help markup anyhow...
> >
> > Please try to fix the parser to insert tabs only for indentation of open
> > tags; not for closing tags.
>
> He is not meaning all these. He is meaning something like:
>
> <TEXT>
> These are 80 characters of text.
> These are other 80 characters of text.
> This is the end of the paragraph.
> </TEXT>
>
> (If you want more examples like that, look at any status.html file in the
> filter directories.)
Which is HTML. Not XML.
> 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.
Now if only Qt would listen to this tag :)
> > The way <TEXT>my Text</TEXT> works is standard in the SAX parsers I know;
> > the CTEXT part you propose is generally used for binairy only, which this
> > certainly is not.
>
> It is CDATA!
I never said that it is not; please take some more time to read my email before
replying; I feel you want to correct me on everything I ever write on XML,
please don't do it like this. (note that I have no problem if you want
to correct anything I say)
> And no, it is not for binary files (or is our document info binary?)
document info?
--
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