Here are some problems I ran into when using Genshi and
stream
transformation, with some possible remedies:
* Marked streams use a different protocol from all other
streams,
making filter composition more difficult than necessary.
IMO
There's no reason you shouldn't be able to use an ordinary
filter on
a marked stream. You could instead piggyback the mark on
the event
type much the same way you piggyback a namespace
qualification on
QName objects.
* I wanted to select parts of a stream using xpath and apply
an
ordinary transform to just the selected parts, but found
there was
no easy way to do it. Transformer('//some/xpath').apply(
x ) ought
to be that way, but unfortunately that method name is
taken for a
different purpose. I suggest you add something that does
it.
* I know genshi itself is HTML-agnostic, but I really wanted
a way to
select an element with a given class. Since the class
attribute can
often contain several space-separated class names, I
didn't see a
reliable way to do it. You could support the XPATH
"matches()"
function.
Thanks for listening,
--
Dave Abrahams
Boost Consulting
http://www.boost-cons
ulting.com
The Astoria Seminar ==> http://www.astoriasemin
ar.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Genshi" group.
To post to this group, send email to genshi googlegroups.com
To unsubscribe from this group, send email to
genshi-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/genshi?hl=en
-~----------~----~----~----~------~----~------~--~---
|