[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: [PATCH] KWord's DTD
From: Nicolas Goutte <nicog () snafu ! de>
Date: 2001-12-05 22:45:38
[Download RAW message or body]
The attached patch is for the file kword/kword.dtd
Dash sequences:
I have replaced the dash sequences, as in SGML, two dashes end (or start) a
comment and three dashes are a parsing error. A DTD is a SGML file.
newFrameBehavior:
This attribute was recently renamed from British English to American English,
however the documenation has only half followed.
xml:space="preserve"
I have added this attribute, as we are using it implictely. In <TEXT>, the
spaces are important, as <FORMAT> tags depend on them.
Note: I have done this changes according to the specification of XML. I have
not verified that it works with any XML tool.
Have a nice day/evening/night!
["patch.txt" (text/x-diff)]
--- kword.dtd.old Sat Nov 24 22:59:41 2001
+++ kword.dtd Wed Dec 5 23:30:44 2001
@@ -9,7 +9,7 @@
About the version
------------------
+=================
This is the DTD version 2, for KWord-1.0.
It has changed a bit since the DTD version 1, for KWord-0.8 (the one included in KDE-2.0)
@@ -18,7 +18,7 @@
KWord overview
---------------
+==============
The main structure of each KWord document is a header and a body. The header
contains things like the paper size, the margins and so on.
@@ -34,7 +34,7 @@
Some basic notes on XML
------------------------
+=======================
- All kinds of numbers are stored like this: foo="1" (between " and " :)
@@ -302,7 +302,7 @@
Place a new frame on next page.
2...Ignore extra text
- newFrameBehaviour: DEPRICATED use newFrameBehavior instead.
+ newFrameBehaviour: DEPRECIATED use newFrameBehavior instead.
newFrameBehavior: 0...On creating a new page, reconnect frame
to current frameset (use this for the normal text body).
1...Don't create a followup frame on the new
@@ -342,7 +342,7 @@
runaround CDATA #IMPLIED
runaroundGap CDATA #IMPLIED
autoCreateNewFrame CDATA #REQUIRED
- newFrameBehaviour CDATA #REQUIRED
+ newFrameBehavior CDATA #REQUIRED
copy CDATA #IMPLIED>
<!ELEMENT PARAGRAPH
@@ -351,9 +351,15 @@
<!-- Just guess :) The text is stored as UTF-8 compressed Unicode
glyphs. Note: the format-tags navigate in the text using an index
which starts at 0 and runs up till it reaches length-1.
+
+ Attribues:
+
+ xml:space: "preserve" tells to keep white spaces
-->
<!ELEMENT TEXT
(#PCDATA)>
+<!ATTLIST TEXT
+ xml:space (preserve) #FIXED "preserve">
<!-- List of formats that apply to a given paragraph
-->
_______________________________________________
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