<br><font size=2><tt>Hi all,</tt></font>
<br>
<br><font size=2><tt>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:</tt></font>
<br>
<br><font size=2><tt> <font size="4"><i>Hello
World</i></font></tt></font>
<br><font size=2><tt> <i><font
size="4">Hello World</font></i></tt></font>
<br>
<br><font size=2><tt>This should become:</tt></font>
<br>
<br><font size=2><tt> <h1 class="subtitle">Hello
World</h1></tt></font>
<br><font size=2><tt> </tt></font>
<br><font size=2><tt>I can build filters to find <font>, <font
size="4"> or <i>, but the combination does not seem
to work.</tt></font>
<br><font size=2><tt>From what I could gather from the documentation, it
should be something like:</tt></font>
<br>
<br><font size=2><tt>foldXml (txt ?>
keep :></tt></font>
<br><font size=2><tt>
(attrval("size",AttValue[Left "4"])
`o` tag "font") /> tag "i" ?> replaceTag "h1"
:></tt></font>
<br><font size=2><tt>
children)</tt></font>
<br>
<br><font size=2><tt>This doesn't work. I am clearly missing something
elementary here, so any hints are welcome.</tt></font>
<br>
<br><font size=2><tt>Cheers,</tt></font>
<br>
<br><font size=2><tt>K.</tt></font>
<br>
<br>
<br><font size=2 face="sans-serif"> </font>
<br>
<br>