OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]

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; )>





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS