[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Hello, some problems with XSL-FO

Subject: RE: Hello, some problems with XSL-FO
From: "luis montealbaran" <nob_ody@xxxxxxxxxxx>
Date: Sat, 20 Dec 2003 17:12:31 +0000
xsl fo generate id
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[@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@xxxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: RE: RE: RE:  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@xxxxxxxxxx - 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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.