Re: [xml-dev] Re:[xml-dev] [ANN] XML Limerick Competition

From
Jonathan Robie <>
To
Justin Couch <>,
Date
2002-01-11T23:24:02Z
ID
<[email protected]>
Thread
Re: [xml-dev] Re:[xml-dev] [ANN] XML Limerick Competition
At 10:00 AM 1/12/2002 +1100, Justin Couch wrote:
>Jonathan Robie wrote:
>
>>The following covers at least the syllabification:
>><?xml version="1.0" encoding="UTF-8"?>
>
>I'm sure this is completely tasteless, but I was just describing this 
>thread to a mate of mine, and the reply was "its sent by osama to waste 
>allied productivity" :)

I'm sure many of you caught this, but there was an error in my schema. The 
reason for having two parameter entities for metric feet was to capture the 
fact that the last foot in a line may have an extra syllable:

<!ENTITY % normal.foot "(%iamb; | %anapest; )">
<!ENTITY % last.foot "(%iamb; | %anapest; | %tertius.paeon; )">

The corrected DTD appears after my signature.

Jonathan

<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY % normal.foot "(%iamb; | %anapest; )">
<!ENTITY % last.foot "(%iamb; | %anapest; | %tertius.paeon; )">

<!ENTITY % iamb "( da, dum )">
<!ENTITY % anapest "( da, da, dum )">
<!ENTITY % tertius.paeon "( da, da, dum, da )">

<!ELEMENT da (#PCDATA)>
<!ELEMENT dum (#PCDATA)>
<!ELEMENT limerick (long, long, short, short, long)>
<!ELEMENT long ( %normal.foot;, %normal.foot;, %last.foot; )>
<!ELEMENT short ( %normal.foot;, %last.foot; )>