Transformation example - flat document
<!DOCTYPE DOC [
<!ELEMENT DOC - O (P+)>
<!ELEMENT P - O (#PCDATA) -- Paragraphs -->
<!ATTLIST P
LEVEL NUMBER 0 -- indentation level --
MARK (MARK|NOMARK) NOMARK -- list item mark --
CONT (CONT|NOCONT) NOCONT -- continuation of
logical para --
>
]>
<DOC>
<P>Introductory paragraph</P>
<P>Second paragraph :</P>
<P MARK LEVEL=1>First case</P>
<P LEVEL=1>Second paragraph in item</P>
<P MARK LEVEL=1>Second case :</P>
<P MARK LEVEL=2>First sub-case</P>
<P MARK LEVEL=2>Second sub-case</P>
<P CONT>Continuation of second paragraph.</P>
</DOC>
[Prev][Next]