XML technologies / XSLT / XSLT 3.0 / XSLT streaming / Conclusions

Researching the topic revealed that little literature was available on streaming in XSLT, with information coming mainly from the W3C specification or papers from XML Prague and XML London.

The aim was to explore the innovations introduced by XSLT 3.0, especially streaming, and adapt application scenarios to streaming mode. Unlike static processing, streaming transformations have specific features and restrictions that users must understand. These are summarized again here.

A streaming processor handles a document in a single pass, visiting each node only once. Elements therefore cannot be processed repeatedly. To transform them further, they must be handled in a motionless way: create copies or divide the stream into Blocks. This clearly defines the beginning and end of the elements being processed, making them effectively motionless. With these rules observed, elements can be transformed in the usual way.

Streaming in XSLT 3.0 addresses growing data volumes and real-time data access. It allows large files to be read and transformed even when they would not fit into memory. Another application is streaming directly from an API: data is continuously read from a URL and processed through XSLT streaming.

   

back to top