[Home] [By Thread] [By Date] [Recent Entries]
Surla, Stacy wrote:
I have a collection of publications records in XML that store Discipline,
Your groups are keyed by the Disciplines element. Think of
it as the following pseudo code:
select first members of all groups
output Discipline
select all members of current group
Output values of Title, Publisher, and DateSome XSLT to get you started
<xsl:key name="r-d" match="Record" use="Disciples"/>
<xsl:template match="InstCorr">
<xsl:for-each select="Record[
generate-id()=generate-id(key('r-d',Disciples)]">
<xsl:value-of select="Disciples"/>
<xsl:for-each select="key('r-d',Disciples)">
<xsl:value-of select="Title"/>
...
</xsl:for-each>
</xsl:for-each>
</xsl:template>
(Beware: untested)J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



