xmerl:export

Mikael Karlsson mikael.karlsson@REDACTED
Fri Aug 30 19:32:30 CEST 2002


fredag 30 augusti 2002 14:27 skrev Richard Carlsson:
> On Fri, 30 Aug 2002, Vlad Dumitrescu wrote:
> > I wrote that function just because I thought export wouldn't give me
> > what I needed, but it is possible that I didn't dig deep enough into
> > xmerl...
> >
> > can xmerl:export be used to return another XML structure too? The
> > examples only return text representing the XML or HTML, so I might
> > have been mislead into thinking that this is all xmerl:export can
> > do...
>...
> Rewriting the XML data is preferably done as one or more passes over the
> xmerl tree before exporting to text form (as opposed to doing it while
> parsing or exporting). This keeps your code cleaner. In general, trying
> to cram a complicated transformation into one pass tends to make a big
> buggy mess of your code. Don't be afraid to use several passes if it
> helps you clean up the transformation conceptually.
>...
> 	/Richard

Thanks for all the feedback, 
I understood Vlads point, eventually. (Now I only need to understand how to
use his function :-).
The reason why I like the idea about one single pass was that I had a vague
idea of using xmerl + yaws to export/publish XML documents written in the
Simplified DocBook DTD on the fly. So I was i bit biased towards performance.
Given all the earlier >1000/s dynamic pages yaws could do, I just thought it 
could be nice to have a real "heavy duty" engine for XML transform and 
publishing. I'll give it a second thought though, fast is not always 
correct...

/Mikael




More information about the erlang-questions mailing list