Quote:
Originally Posted by Elsi
Tompe, I'm interested in your SGML file. What markup system do you use? Do you have a schema?
|
It i a very old file started when SGML was defined (and an XML file is probably bettter to use now adays but using SGML you get a more compact notation more suitable for editing with a text editor.
It looks like:
Code:
<!doctype bl SYSTEM "bl.dtd" [
<!ENTITY facklista SYSTEM "facksgm" >
<!ENTITY cdlista SYSTEM "cdsgm" >
]>
<bl>
<fiction>
<author> Kim Stanley Robinson
<book> <t> Red Mars <cy> 1993 <p> <r> 990327
<book> <t> The Years of Rice and Salt <cy> 2002 <bd> 030419 <bp> Forbidden Planet, Seacon 03 <p> £7.99 <r>
<author> Peter Robinson
<book> <t> Gallows View <cy> 1987 <bd> 081117 <bp> amazon.co.uk <p> 90.00 <r> 081122.2
<book> <t> A Dedicated Man <cy> 1988 <bd> 081117 <bp> amazon.co.uk <p> 90.00 <r> 081201
<author> Spider Robinson
<book> <t> Mindkiller <p> 36.00 <r> 891012
<book> <t> Telempath <p> 15.00 <r> 890714
</fiction>
</bl>
As you see the advantage with SGML is that you can eliminate the end tags. Recently I have started to add place I bought the book and the date so I can get statistics over how long time ut takes me to read a book and also that I can see what books I have bought recently since they should be high on the to do pile.