[lxml-dev] Getting around namespaces
Ross Vandegrift
ross at kallisti.us
Wed Jan 21 17:26:51 CET 2009
Hi everyone,
I'm working on XSLT sheets for transforming XML into Python, but I've
got something of a hiccup.
I have a collection of identical documents that have unfortunately
been tagged with different namespaces. I know that the semantics
haven't changed - someone thought it'd be useful to indicate the
version of the generator in the namespace.
This of course makes XSLT a pain - I need duplicate transform sheets
that differ only in the namespace configuration. Further, namespaces
appear to be the one element of XSLT that I can't use a parameter to
substitute.
So I'm thinking of pre-processing the XSLT to subsitute the
version-specific namespace. Is there a better way?
--
Ross Vandegrift
ross at kallisti.us
"If the fight gets hot, the songs get hotter. If the going gets tough,
the songs get tougher."
--Woody Guthrie
More information about the lxml-dev
mailing list