xsl-list
[Top] [All Lists]

Re: [xsl] XSLT3 - Streaming + Recursive File Output

2016-08-12 05:57:09
On 12.08.2016 00:07, Mailing Lists Mail daktapaal(_at_)gmail(_dot_)com wrote:

1. Remove a set of nodes(Species) from the source
tree(UniverseKingdom.xml), which can be  around 1000,000
2. Create a File called UniverseKingdom-without-species.xml which has
every element in UniverseKingdom, except the Species nodes

I would start with doing 1 and 2 in one stylesheet which can then be as simple as

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="3.0">

<xsl:mode streamable="yes" on-no-match="shallow-copy"/>

<xsl:template match="*:species"/>

</xsl:stylesheet>


3. Create batches of 1000 species and throw them out into
AnimalKingdomSpeciesBatch1.xml and so on and so forth till all the
Species are covered.

and then trying to do 3 in a separate stylesheet using the approach outlined by Michael with the positional grouping using for-each-group group-adjacent.


--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>