XML streaming with XProc.
Posted
by Pierre
on Stack Overflow
See other posts from Stack Overflow
or by Pierre
Published on 2009-05-18T16:34:33Z
Indexed on
2010/03/30
12:03 UTC
Read the original article
Hit count: 438
Hi all, I'm playing with xproc, the XML pipeline language and http://xmlcalabash.com/. I'd like to find an example for streaming large xml documents. for example, given the following huge xml document:
<Books>
<Book>
<title>Book-1</title>
</Book>
<Book>
<title>Book-2</title>
</Book>
<Book>
<title>Book-3</title>
</Book>
<!-- many many.... -->
<Book>
<title>Book-N</title>
</Book>
</Books>
How should I proceed to loop (streaming) over x->N documents like
<Books>
<Book>
<title>Book-x</title>
</Book>
</Books>
and treat each document with a xslt ? is it possible with xproc ?
© Stack Overflow or respective owner