[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Hello, some problems with XSL-FO
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 _________________________________________________________________ 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
|
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
|