RE: [xsl] Hello, some problems with XSL-FO

Subject: RE: [xsl] Hello, some problems with XSL-FO
From: "luis montealbaran" <nob_ody@xxxxxxxxxxx>
Date: Sat, 20 Dec 2003 17:12:31 +0000
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="";
 <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 -->
<xsl:for-each select="//course[@acad_year=$year][generate-id(.) = generate-id(key('groups', $group)[1])]">
<xsl:sort select="title" />
<fo:block text-align-last="justify">
<xsl:attribute name="internal-destination">
<xsl:value-of select="generate-id()" />
<xsl:value-of select="title"/>
<fo:leader leader-pattern="dots" />
<xsl:attribute name="ref-id">
<xsl:value-of select="generate-id()" />

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.


From: cknell@xxxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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.
Charles Knell
cknell@xxxxxxxxxx - email

XSL-List info and archive:

Protect your PC - get VirusScan Online

XSL-List info and archive:

Current Thread