E
ezmiller
This quesiton may be somewhat complex.
To explain it I have to describe my project briefly. I have designed a
series of dtds that describe documents including a citation of a book
and then what I've termed <note_session>s. The note sessions contain
<notes> with <chapters> with <sections>, and finally <args> , where the
<arg> is the fundamental element of note taking...it includes <text>
and <quote>... So in the end I have a structured notes docuemnt that is
also resolvable into individual <arg>s.
My question and problem is this. When taking notes, especially
quoting, I need to be able to accuratley preserve text that may be
italicized. I don't know how to do this, though. At the moment, I
have enabled <text> and <quote> elements to also include <italic>
elements, so text that has been italicized is wrapped in a sub-selement
<italic>. But this is not really a solution, because I don't know how
to actually make the text italicized....
Any ideas? I'm going to attach my dtd below just to show you.
Best,
Ethan
---------
<!ELEMENT book (citation, note_session*)>
<!ELEMENT citation
(authorID+,book_title,series_title?,editor?,translator?,publisher,place_of_pub,date_of_pub,citation_note?)>
<!ELEMENT note_session (read_for,date,synopsis?,crit_com?, (notes |
random_notes)*)>
<!-- The citation elements -->
<!ELEMENT authorID (#PCDATA)>
<!ELEMENT book_title (#PCDATA)>
<!ELEMENT series_title (#PCDATA)>
<!ELEMENT editor (#PCDATA)>
<!ELEMENT translator (#PCDATA)>
<!ELEMENT publisher (#PCDATA)>
<!ELEMENT place_of_pub (#PCDATA)>
<!ELEMENT date_of_pub (#PCDATA)>
<!ELEMENT citation_note (#PCDATA)>
<!-- The note_session elements -->
<!ELEMENT read_for (#PCDATA)>
<!ELEMENT date (day?, month, year)>
<!ELEMENT day (#PCDATA)>
<!ELEMENT month (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT synopsis (#PCDATA)>
<!ELEMENT crit_com (#PCDATA)>
<!ELEMENT notes (part | chapter | arg | comment)*>
<!-- Note elements -->
<!ELEMENT part (chapter*)>
<!ATTLIST part title CDATA #IMPLIED>
<!ELEMENT chapter (chapter_title,chapter_summary?, (section | arg |
data | comment)*)>
<!ELEMENT chapter_title (#PCDATA)>
<!ELEMENT chapter_summary (#PCDATA)>
<!ELEMENT section ((arg | comment)*)>
<!ATTLIST section title CDATA #IMPLIED>
<!--
Arg element: This element has both text and quotes. It is either a
piece of info,
indicated by the datatype attribute as "info," or an essential logical
step in the author's
argument, indicated by the datatype attribute as "idea".
-->
<!ELEMENT arg (keywords?, text, quote*, comment*)>
<!ATTLIST arg datatype (idea | info | quote) "idea">
<!ELEMENT keywords (#PCDATA)>
<!ELEMENT text (#PCDATA | quote | italic)*>
<!ELEMENT quote (#PCDATA | italic)*>
<!ATTLIST quote authorID CDATA #IMPLIED>
<!ELEMENT comment (#PCDATA)>
<!ELEMENT italic (#PCDATA)>
<!--
Random notes: This element provides a way to take notes that is not so
much about
the close reading and tracing of the text's logic. Instead, it is for
notes that are more
units of information and which are targeted. Instead of the arg
element it has a card
element.
-->
<!ELEMENT random_notes ((card | comment)*)>
<!--
Card element: This element is exactly the same as the arg element
except that it requires
keywords.
-->
<!ELEMENT card (keywords, text,quote*,comment*)>
To explain it I have to describe my project briefly. I have designed a
series of dtds that describe documents including a citation of a book
and then what I've termed <note_session>s. The note sessions contain
<notes> with <chapters> with <sections>, and finally <args> , where the
<arg> is the fundamental element of note taking...it includes <text>
and <quote>... So in the end I have a structured notes docuemnt that is
also resolvable into individual <arg>s.
My question and problem is this. When taking notes, especially
quoting, I need to be able to accuratley preserve text that may be
italicized. I don't know how to do this, though. At the moment, I
have enabled <text> and <quote> elements to also include <italic>
elements, so text that has been italicized is wrapped in a sub-selement
<italic>. But this is not really a solution, because I don't know how
to actually make the text italicized....
Any ideas? I'm going to attach my dtd below just to show you.
Best,
Ethan
---------
<!ELEMENT book (citation, note_session*)>
<!ELEMENT citation
(authorID+,book_title,series_title?,editor?,translator?,publisher,place_of_pub,date_of_pub,citation_note?)>
<!ELEMENT note_session (read_for,date,synopsis?,crit_com?, (notes |
random_notes)*)>
<!-- The citation elements -->
<!ELEMENT authorID (#PCDATA)>
<!ELEMENT book_title (#PCDATA)>
<!ELEMENT series_title (#PCDATA)>
<!ELEMENT editor (#PCDATA)>
<!ELEMENT translator (#PCDATA)>
<!ELEMENT publisher (#PCDATA)>
<!ELEMENT place_of_pub (#PCDATA)>
<!ELEMENT date_of_pub (#PCDATA)>
<!ELEMENT citation_note (#PCDATA)>
<!-- The note_session elements -->
<!ELEMENT read_for (#PCDATA)>
<!ELEMENT date (day?, month, year)>
<!ELEMENT day (#PCDATA)>
<!ELEMENT month (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT synopsis (#PCDATA)>
<!ELEMENT crit_com (#PCDATA)>
<!ELEMENT notes (part | chapter | arg | comment)*>
<!-- Note elements -->
<!ELEMENT part (chapter*)>
<!ATTLIST part title CDATA #IMPLIED>
<!ELEMENT chapter (chapter_title,chapter_summary?, (section | arg |
data | comment)*)>
<!ELEMENT chapter_title (#PCDATA)>
<!ELEMENT chapter_summary (#PCDATA)>
<!ELEMENT section ((arg | comment)*)>
<!ATTLIST section title CDATA #IMPLIED>
<!--
Arg element: This element has both text and quotes. It is either a
piece of info,
indicated by the datatype attribute as "info," or an essential logical
step in the author's
argument, indicated by the datatype attribute as "idea".
-->
<!ELEMENT arg (keywords?, text, quote*, comment*)>
<!ATTLIST arg datatype (idea | info | quote) "idea">
<!ELEMENT keywords (#PCDATA)>
<!ELEMENT text (#PCDATA | quote | italic)*>
<!ELEMENT quote (#PCDATA | italic)*>
<!ATTLIST quote authorID CDATA #IMPLIED>
<!ELEMENT comment (#PCDATA)>
<!ELEMENT italic (#PCDATA)>
<!--
Random notes: This element provides a way to take notes that is not so
much about
the close reading and tracing of the text's logic. Instead, it is for
notes that are more
units of information and which are targeted. Instead of the arg
element it has a card
element.
-->
<!ELEMENT random_notes ((card | comment)*)>
<!--
Card element: This element is exactly the same as the arg element
except that it requires
keywords.
-->
<!ELEMENT card (keywords, text,quote*,comment*)>