Hi,

 

I just happened to download saxon-ee evaluation copy to evaluate it against my requirement of transforming a large input xml by splitting it into several well-formed xml chunks that can be transformed one by one.

If this happens to work using evaluation, I would then like to go with saxon-ee for actual production code.

 

My requirement is to split the following xml where <row> elements are more than 100K in number:

 

<message>

                <header>header-info</header>

                <body>

                                <row>row-value</row>

                                <row>row-value</row>

                </body>

                <footer>footer-info</footer>

</message>

 

In a very simple sense I want the above xml to split into two separate xmls:

 

Part1:

------

<message>

                <header>header-info</header>

                <body>

                                <row>row-value1</row>

                </body>

                <footer>footer-info</footer>

</message>

 

Part2:

------

<message>

                <header>header-info</header>

                <body>

                                <row>row-value2</row>

                </body>

                <footer>footer-info</footer>

</message>

 

My company suggested me to do this using saxon streaming (XSLT 3.0) as opposed what I’ve already done using plain SAX approach.

 

Could you please help me on this?

 

Thanks,

Raj