The link you gave is a lot of help, I have try to do the following but is
not working :
<?xml version="1.0" encoding="utf-8"?>
<!-- XSLT to Produce XSL-FO document -->
<!-- Need to accept a parameter named "year" -->
<!-- Need to accept a parameter named "group" -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
<xsl:output method="xml"/>
<!-- Our parameters -->
<xsl:param name="group" />
<xsl:param name="year" />
<!-- Keys -->
<xsl:key name="groups" match="course" use="course_group" />
<!-- Create TOC -->
<fo:block>
<xsl:for-each select="//course[(_at_)acad_year=$year][generate-id(.) =
generate-id(key('groups', $group)[1])]">
<xsl:sort select="title" />
<fo:block text-align-last="justify">
<fo:basic-link>
<xsl:attribute name="internal-destination">
<xsl:value-of select="generate-id()" />
</xsl:attribute>
<xsl:value-of select="title"/>
<fo:leader leader-pattern="dots" />
<fo:page-number-citation>
<xsl:attribute name="ref-id">
<xsl:value-of select="generate-id()" />
</xsl:attribute>
</fo:page-number-citation>
</fo:basic-link>
</fo:block>
</xsl:for-each>
</fo:block>
I have created a key name groups,, then in the TOC I use the each-for
statemnt to match those courses within group and year parameters, and
seelcting unique courses base on the group.
But is not working.
So my questions how can select those courses using the year and group
parameter, but are unique using the group.
Comments ?
Thx a lot for the help.
LuisMM
From: cknell(_at_)onebox(_dot_)com
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: RE: RE: RE: [xsl] Hello, some problems with XSL-FO
Date: Sat, 20 Dec 2003 08:30:53 -0500
I think this link will show you what you need.
http://www.jenitennison.com/xslt/keys.html
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list