[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using XSLT to build an index
Ken, I just ran your code and it produced the expected results. Thanks, Mark -----Original Message----- From: G. Ken Holman Sent: Monday, October 31, 2011 4:17 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Using XSLT to build an index 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:
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|