[Haskell-cafe] Re: strange ghc program behaviour

2006-03-22 Thread Koen . Roelandt
From ghc-6.4, the runtime system no longer flushes open files; it truncates them instead. You should close (or flush) the file explicitly with 'hClose' or 'hFlush' before the program terminates. I added 'hClose' to processXmlWith in the Wrapper module. That solved the problem. Thank you!

[Haskell-cafe] strange ghc program behaviour

2006-03-21 Thread Koen . Roelandt
Hi, I'm a Haskell newbie using HaXml for the conversion of xml files into html files. I'm using GHC 6.4 to compile the program. When I run the program, it will not convert the whole file: the document tree is incomplete and will stop when the limit of e.g. 8k has been reached. E.g. An xml

[Haskell-cafe] HaXml: ampersand in attribute value

2006-02-17 Thread Koen . Roelandt
HaXml seems to choke on finding an ampersand in an attribute value. Is this normal? Is there any workaround? Cheers, Koen. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: HaXml: ampersand in attribute value

2006-02-17 Thread Koen . Roelandt
But speaking of HaXml bugs, I'm pretty sure HaXml doesn't handle % correctly. It seem to treat % specially everywhere, but I think it is only special inside DTDs. I have many XML files produced by other tools that the HaXml parser fails to process because of this. I had a similar problem

Re: Betreft: Re: [Haskell-cafe] Elementary HaXml question

2006-02-10 Thread Koen . Roelandt
Ah, I see. In the first case, you simply change the font tag into h1, keeping the em tag exactly the same. But in the second case, you not only want to change font into h1, but also to move the em tag from outside the font to inside. Not exactly. In the end I want to turn both tags into one

[Haskell-cafe] Elementary HaXml question

2006-02-09 Thread Koen . Roelandt
Hi all, I'm new to Haskell and HaXml and I'm playing around with the latter to clean some (well-formed) 'legacy' html. This works fine except for the following cases. Some of the elements to be cleaned are: font size=4iHello World/i/font ifont size=4Hello World/font/i This should

Re: [Haskell-cafe] Elementary HaXml question

2006-02-09 Thread Koen . Roelandt
I'm new to Haskell and HaXml and I'm playing around with the latter to clean some (well-formed) 'legacy' html. This works fine except for the following cases. Some of the elements to be cleaned are: font size=4iHello World/i/font ifont size=4Hello World/font/i This