Differences between revisions 1 and 2
Revision 1 as of 2008-06-26 12:26:05
Size: 1156
Editor: kfc
Comment: Created by the PackagePages action.
Revision 2 as of 2010-03-17 13:09:09
Size: 1157
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Part of [:Iteration8: iteration 8]. Part of [[Iteration8| iteration 8]].

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 ...
  </if>
</for-each>

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)