[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 'Variable' question from Newbie
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 Date Some 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
|
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
|