XML streaming with XProc.
- by Pierre
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 ?