[XML-SIG] building XML docs using ?
Tue, 15 May 2001 10:17:41 -0700
Thanks to everyone for their helpful responses. And to probe even
further, into this technology that will "solve all my problems"...
"Thomas B. Passin" wrote:
> [Lars Marius Garshol]
> > * Joe Murray
> > ...
> > > Oh, and BTW, can XML solve all my problems??? ;-)
> > I'm afraid not. You'll need topic maps for that... :-)
> Hey, the man needs speed here .... :-)
So, with regard to speed, is there an XSLT processor (python or not)
which take a SAX-like event-driven approach to transforming XML? I know
this doesn't deal fully with the dynamicity of an XSL doc, but it would
be useful. I checked some old xml-dev, xml-sig... I can't vouch for the
people who were discussing such a processor and given the fact that most
of the posts were circa 1999... I couldn't find a straightforward
answer. Does Sablotron support this? It seems as if the Oracle XML
parsers packages do... but after some surfin', I ain't certain...
"Martin v. Loewis" wrote:
> > Should I forgo the ease of using the DOM objects by simply generating
> > outputting "hand-generated" markup?
> Yes, definitely.
> > I was doing this previously, it's efficient, but definitely not as
> > nice/clean as it could be...
> Why is that? If you create the right template for a single line, e.g.
> template = '<elem attr1='%d' attr2='%s'>%s</elem>'
> then a simple print statement would suffice to fill out this template.
> This also make a nice separation of structure and content.
Indeed, this is the route I have gone. I'm using
xml.sax.saxutils.escape, a handy function, in lieu of the SAX writer
All you guys are a helpful bunch!
Bioinformatics Specialist, AGY Therapeutics
290 Utah Avenue, South San Francisco, CA 94080