[Home] [By Thread] [By Date] [Recent Entries]
Michael's answer gives you source document context of each item,
which can be very useful.
But to answer your specific question in the event that context is not needed: At 2011-10-30 22:29 -0700, Mark wrote: I have now normalized and isolated every phrase I wish to index into a few thousand structures similar to: Thankfully, it is straightforward to do something "for each" value in a sequence: <xsl:variable name="title" select="@title"/>
<xsl:variable name="ref" select="@ref"/>
<!--walk over each distinct value setting that value as the current node-->
<xsl:for-each select="distinct-values(........)">
<Word title="{$title}" ref="{$ref}"><xsl:value-of select="."/></Word>
</xsl:for-each>I hope this helps. . . . . . . . . . . Ken -- Contact us for world-wide XML consulting and instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



