Body dei Sorgenti Sgml


Il sorgente di un file sgml riceve il seguente trattamento:

  1. I commenti sgml vengono trasformati internamente in commenti 'C'.
  2. Il testo cosi trasformato viene dato in pasto alla scansione c.

La trasformazione dei commenti avviene in questo modo. Viene esaminato il file sgml e le righe che contengono il testo "<!-- /**"

vengono traformati in "/**". Le righe che contengono "**/ -->" vengono trasformate in "**/". Per cui un commento sgml con questa forma.

<!-- /**
**************************************************************
@Daf     dat.dtd : Dtd dei Dati                          @/Daf
**************************************************************
@DafType Tag
@Dir     dst.dir.darbin.sgml.dtd.ar
@Descr
<P>Questo file è un DTD sgml. Descrive il contenuto di un
documento tipo dato.</P>
<P>Si veda #dsg(dtd.dat).</P>
@/Descr
**************************************************************
**/ -->

Diventa:

/**
**************************************************************
@Daf     dat.dtd : Dtd dei Dati                          @/Daf
**************************************************************
@DafType Tag
@Dir     dst.dir.darbin.sgml.dtd.ar
@Descr
<P>Questo file è un DTD sgml. Descrive il contenuto di un
documento tipo dato.</P>
<P>Si veda #dsg(dtd.dat).</P>
@/Descr
**************************************************************
**/

Con questa traformazione tutto il sorgente sgml è trattabile come codice 'C' e tutti i tags gestiti da Riepilogo dei Tag, sono gestibili in un sorgente sgml.

dsg.src.scan.sgml • LastModified: 14-9-2007 • John Peter Arnold