Il sorgente di un file sgml riceve il seguente trattamento:
- I commenti sgml vengono trasformati internamente in commenti 'C'.
- 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.