Folks:

  Thanks for the responses, I pretty much figured this but it's good to get
confirmation.

  I was sort of thinking of this .. instead of a full 'streaming' xslt, if
pieces of the xml were recognizeable as seperate entities, it would be nice to
read the xslt itself in at once (that's probably not that big), and then parse
each 'block' (top level element maybe) as a seperate entity.  Thus, you could
do 'flat file' style transforms without a big overhead.  However, I think that
this might wreck the 'for each' or make processing some of the xslt
instructions quite complex.

  Thoughts?  Is there a streaming xslt list?

  We've done it the by hand way ourself, just using a customized expat class
that reads in the data and handles it directly.  I do like the flexibility of
xslt though.

                == John ==

> -----Original Message-----
> From: Andreas Fredriksson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 18, 2000 5:22 AM
> To: Sablotron Mailing List
> Subject: [Sab] Re: Parsing - in memory or item by item
>
>
> Michael Koehne <[EMAIL PROTECTED]> wrote:
>
> >   yes it does - you should use SAX or expat directly, if you have XML of
> >   that size - I've seen an DELJIT of megabyte size. This unpacks by factor
> >   23 to XML. Storing it in a DOM, would trash most systems.
>
> If someone is up to writing the code, I'm sure a glue layer could be written
> for Sablot that would enable it to use a DOM-aware database as a backend, to
> re-use the existing codebase.
>
> But in general, if you have XML documents of several megabytes, you really
> want to write a specialized transformation program anyway because typically
> you will chop it up in the end anyway if the target is an end-user.
>
> Also, these transformations are typically one-time where XSLT is applied to
> the resource on demand. In one system I worked with we had XML
> files that were
> 1-5 MBs that came in from an external party. The only thing I did
> was to strip
> them up with a perl script and chop it up into "consumable" bits in
> a backing
> store. The smaller pieces can then be transformed as required.
>
> Regards,
> Andreas
>
>
> ____________________________________________________________________
> Get your own FREE, personal Netscape WebMail account today at
> http://webmail.netscape.com.
>


Reply via email to