[XML-SIG] merging xml sources (again)

Jed Parsons jedp@ilm.com
Thu, 30 May 2002 12:22:54 -0700 (PDT)


Here's a variant of a recently-asked question (with thanks again to
those who responded):

Is it possible to insert elements into the stream being parsed by an
xml.sax parser while it's parsing?  I would like to be able to merge
bits of xml into a document while it's being parsed.  Merging is
triggered by an element I'm calling 'include-xml' that indicates the
location of an external xml document.  Presently, I'm using what's
essentially an identity transformation with xslt to produce a document
derived from multiple sources (all same namespace; no additional
transformations necessary), and then parsing that document.

Basically, this just smells wrong :-)  It's slow, too.  Can I roll the 
transformation phase right into my document handler?

Thanks for any advice.  Cheers,

Jed

-- 
Jed Parsons       Industrial Light + Magic  (415) 448-2974 
	     
grep(do{for(ord){(!$_&&print"$s\n")||(($O+=(($_-1)%6+1)and
grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6))))}},(split(//,
"++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0.  What!?")));