Re: [Haskell] HaXML incorrect interpretation of XML spec!

2004-10-28 Thread Graham Klyne
Looking at the before-and-after versions of HaXml code that I have modified [1] (with the primary goal of adding namespace support, but also numerous other changes), it seems that the parser always allowed PIs to appear before and after the DTD, but did not store them in the resulting data stru

Re: [Haskell] HaXML incorrect interpretation of XML spec!

2004-10-28 Thread Malcolm Wallace
"S. Alexander Jacobson" <[EMAIL PROTECTED]> writes: > I modified the Prolog type to be >data Prolog = Prolog (Maybe XMLDecl) [Misc] (Maybe DocTypeDecl) [Misc] > and then modified the Prolog parser Thanks for spotting this bug and providing a fix. I also note that the XML spec allows "misc*"

Re: [Haskell] HaXML incorrect interpretation of XML spec!

2004-10-27 Thread S. Alexander Jacobson
I modified the Prolog type to be data Prolog = Prolog (Maybe XMLDecl) [Misc] (Maybe DocTypeDecl) [Misc] and then modified the Prolog parser (which actually was correct) to actually use the misc values in constucting the Prolog. I replace the prolog function in pretty.hs with prolog (Prolo