Difference between revisions of "Textual hierarchy"

From XML
Jump to: navigation, search
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
Elke afzonderlijke tekst wordt gecodeerd door middel van het <text> element. Tussen de openings- en sluittags van het element <text> komt een element <body>. Indien gewenst kan een eventueel aanwezige (hiërarchische) substructuur in de tekst worden gecodeerd door middel van division-elementen <!--nog even uitzoeken hoe ik <div> kan schrijven zonder dat het als code wordt gezien--> die dan telkens één of meer <p> elementen omsluiten en aangevuld worden met een @type-attribuut.
+
While encoding texts, the textual hierarchy is being taken into account. Every single text is encoded using the <text> element, which contains a mandatory <body> element. If so desired, any possible (hierarchical) substructure of the text can be encoded through &lt;div> (‘division’) elements, each enclosing one or more &lt;p> (‘paragraph’) elements and complemented with an @type attribute that describes what kind of division is meant.  
+
De invulling van het <text> element is afhankelijk van het type tekst dat gecodeerd wordt. De hoofdtekst van een tekst bestaat bij proza bijvoorbeeld uit een of meer <p> (paragraph) elementen en bij dichtwerk uit <lg> (line group) elementen (strofen). Voor een titel of iets soortgelijks wordt het element <head> gebruikt, dat hiërarchisch gezien onder het element <body> komt te staan.  
+
  
 +
The type of elements contained by the <text> depends on the type of text that is being encoded. For example, the text of prose usually consists of one or more &lt;p> elements, whereas poetry consists of <lg> (‘line group’) elements that in itself enclose one or more <l> (‘line’) elements. Titles and such can be encoded with a <head> element.
  
 +
Example:
 
<pre>
 
<pre>
<tex>
+
<text>
 
  <body>
 
  <body>
  <div type="part">
+
  <div type="part">
   <head>''Opschrift''</head>
+
  <head>Opschrift</head>
   <p>''Tekst van onderdeel''</p>
+
  <p>Tekst van onderdeel</p>
   <div type="chapter" n="1">
+
  <div type="chapter" n="1">
    <head>''Opschrift''</head>
+
    <head>Opschrift</head>
    <p>''Tekst van hoofdstuk 1''</p>
+
    <p>Tekst van hoofdstuk 1</p>
    <div type="section" n="1.1">
+
    <div type="section" n="1.1">
     <head>''Tussenkop''</head>
+
    <head>Tussenkop</head>
     <p>''Tekst van paragraaf 1.1''</p>
+
    <p>Tekst van paragraaf 1.1</p>
    </div>
+
    </div>
    <div type="section" n="1.2">
+
    <div type="section" n="1.2">
     <head>''Tussenkop''</head>
+
    <head>Tussenkop</head>
     <p>''Tekst van paragraaf 1.2''</p>
+
    <p>Tekst van paragraaf 1.2</p>
    </div>
+
    <p>Tekst van paragraaf 1.2 (vervolg)</p>
   </div>
+
    <p>Tekst van paragraaf 1.2 (verder vervolg)</p>
  </div>
+
    </div>
 +
  </div>
 +
  </div>
 
  </body>
 
  </body>
 +
</text>
 
</pre>
 
</pre>
  
 +
==See also==
 +
* [[Transcription: structure (MVN)]]
 +
* [[Transcription: structure (Mondrian)]]
 +
* [[XML Huygens]]
  
 
[[Category:XML Huygens]]
 
[[Category:XML Huygens]]

Latest revision as of 14:02, 26 April 2017

While encoding texts, the textual hierarchy is being taken into account. Every single text is encoded using the <text> element, which contains a mandatory <body> element. If so desired, any possible (hierarchical) substructure of the text can be encoded through <div> (‘division’) elements, each enclosing one or more <p> (‘paragraph’) elements and complemented with an @type attribute that describes what kind of division is meant.

The type of elements contained by the <text> depends on the type of text that is being encoded. For example, the text of prose usually consists of one or more <p> elements, whereas poetry consists of <lg> (‘line group’) elements that in itself enclose one or more <l> (‘line’) elements. Titles and such can be encoded with a <head> element.

Example:

<text>
 <body>
  <div type="part">
   <head>Opschrift</head>
   <p>Tekst van onderdeel</p>
   <div type="chapter" n="1">
    <head>Opschrift</head>
    <p>Tekst van hoofdstuk 1</p>
    <div type="section" n="1.1">
     <head>Tussenkop</head>
     <p>Tekst van paragraaf 1.1</p>
    </div>
    <div type="section" n="1.2">
     <head>Tussenkop</head>
     <p>Tekst van paragraaf 1.2</p>
     <p>Tekst van paragraaf 1.2 (vervolg)</p>
     <p>Tekst van paragraaf 1.2 (verder vervolg)</p>
    </div>
   </div>
  </div>
 </body>
</text>

See also