|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: RE: RE: Hello, some problems with XSL-FO
Hi This in partial code os my stylesheet! What I do to create the TOC is this : <fo:block>
<xsl:for-each select="//course[course_group=$group]">
<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>After to create each course information, I do this : <!-- Create Pages -->
<xsl:for-each select="//course[course_group=$group]">
<xsl:sort select="title" />
<fo:block break-before="page" xsl:use-attribute-sets="pdf-title">
<xsl:attribute name="id">
<xsl:value-of select="generate-id()" />
</xsl:attribute>
</fo:block>
<fo:block xsl:use-attribute-sets="page-title">
<xsl:value-of select="title" />,
<xsl:value-of select="course_num" />
(CRN:<xsl:value-of select="@crn" />)
</fo:block>
<fo:block xsl:use-attribute-sets="normal">
Meeting Information:
<fo:block>
Days: <xsl:value-of select="./metting/meeting_days" />
</fo:block>
<fo:block>
Begin: <xsl:value-of select="/metting/meeting_begin" />
</fo:block>
<fo:block>
End: <xsl:value-of select="/metting/meeting_end" />
</fo:block>
<fo:block>
Location: <xsl:value-of select="/metting/location" />
</fo:block>
<fo:block>
Professor: <xsl:value-of select="person_name" />
</fo:block>
<fo:block>
Title: <xsl:value-of select="person_name" />
</fo:block>
<fo:block>
Course Description: <xsl:value-of select="description" />
</fo:block>
</fo:block>
</xsl:for-each>In the courses.xml there are several course_group duplicates, I onyl need one of each, I guess I have to use the document-id() But not sure of to obtain unique course groups that match the group and year parameter. I hope this explain better the problem The final otput (pdf) should be something like this Fullname Title course 1.......................................................................2 course 2.......................................................................3 On Page 2: Course 1 Name
Course InformationOn Page 3: Course 2 Name
Course Information----------------------------------- thx a lot for the help. LuisMM From: cknell@xxxxxxxxxx Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: RE: RE: Hello, some problems with XSL-FO Date: Fri, 19 Dec 2003 15:14:41 -0500 _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail 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
|

Cart








