Action XSLTs Unique Subjects

Part of iteration 8.

Currently the index XSLT collects all subjects from all objects considered part of this index representation. This means that some subjects are repeated a large number of times in the index document and presentation. We want the XSLT to make sure that each subject is unique.

Here is something for inspiration:

<for-each select="$nodes">
  <variable name="node" select="item/text()"/>
  <if test="not(following::item[text()=$node])">
     ... do the output ...

This will select unique text, under $nodes in elements called "item".

This must be incorporated in the indexing xslt document (subjects may not be the only thing) and the presentation xslt document.

This must be tested to behave as expected.

Estimated 1-2 md.

ActionXSLTsUniqueSubjects (last edited 2010-03-17 13:09:09 by localhost)