[daisy] [skin2] Poll for participation and input

Marc Portier mpo at outerthought.org
Wed Oct 3 03:25:59 CDT 2007



hepabolu wrote:
> Bruno Dumon said the following on 2/10/07 18:08:
>>>> Removing the (configurable list of) namespaces would best be done by a
>>>> custom filter before the serializer.
>>> How should I go about implementing that?
>>
>> Just an ordinary SAX transformer ;-)
>>
>> Seriously: this shouldn't be too hard, but it has never been someone's
>> itch/priority. Creating an issue in jira so that this doesn't get
>> forgotten would be a good start.
> 
> I don't mind adding this to jira nor figuring out how to make this 
> transformer work, but I fail to see where this is more performant than 
> my silly little XSL file.
> 

by design xslt does not (can not) work in streaming mode: it needs to 
build up the input-tree from the sax-stream, transform that into an 
output-tree and then sax-stream that back out.

therfore a just-pass-all xsl will always be slower (and more memory 
consuming) then a just-pass-all sax filter

on the plus side: (so why use xslt at all, then?)
  - xslt as a language is more expressive and (why not being easy 
itself) often easier to write/maintain then a coded sax filter, 
specially for complex transformations
  - xslt as a standard is (my guess) in broader use (since more 
portable) then SAX event stream filtering


all in all, the simpler the task, and the less expected maintenance, 
modifications or extensions it will require: the more one should opt for 
coding things as a sax filter


Anyway, don't let these observations keep you from sharing your xslt 
solution (e.g. attached to the suggested JIRA issue) as it might be a 
quick win for a lot of people here and now

regards, and thx.
-marc=


More information about the daisy mailing list