xsl-list
[Top] [All Lists]

[xsl] Alphabetical index: unstreamable?

2014-05-28 07:35:23
Dear all,

In documents the content of what will end up in an alphabetical index is 
usually authored in the section to which the index term belongs. That is, index 
terms are usually all over the place.

When it is time to create an alphabetical index, I see that the XSLT handling 
this uses something like

<xsl:call-template name="index">
  <xsl:with-param name="terms"  select="//indexterm" />
</xsl:call-template>

and inside the called template all the sorting and grouping is handled.

This is not streamable because there is more than a single downward select (and 
it is easy to see that you need everything in memory to create the sequence of 
all <indexterm>).

How would you tackle this (in XSLT) if the source data does not fit in memory?

Thanks a lot for hints,

- Michael Müller-Hillebrand
--~----------------------------------------------------------------
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>