STX on top of lxml?
Hello, is it feasible to implement STX (i.e. Streaming Transformations for XML) on top of lxml? greetings, Klaus Schilling
Klaus Schilling, 27.06.2012 20:31:
is it feasible to implement STX (i.e. Streaming Transformations for XML) on top of lxml?
Depends on how much time you want to invest into it. I think that bringing it to a point where it starts being usable wouldn't be all that hard. Generally speaking, it's a bit of an orthogonal thing to lxml. You could implement the STX language (which is an XML language) on top of lxml, obviously. But the intention of the processing model is to *avoid* instantiating a document tree in memory, so the processed document would usually not end up in lxml. An implementation should interface efficiently with lxml, though, to allow an lxml document to be either the source or the target of a transformation (to allow further tree processing on it). Anyway, implementing all of it from scratch doesn't sound like a trivial project, but I would certainly like to see it done. Stefan
participants (2)
-
Klaus Schilling
-
Stefan Behnel