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

XSL-FO & the xsl:sort element

Subject: XSL-FO & the xsl:sort element
From: "craig webber" <craigwebber@xxxxxxxxxxx>
Date: Tue, 07 Jun 2005 10:42:59 +0000
xsl fo sort
Im trying to sort my XSL-FO transformation with no success. In my "Web version" XSL Stylesheet the following takes care of the sorting.

<xsl:apply-templates select="//Item">
<xsl:sort select="name" order="ascending"/>
</xsl:apply-templates>

I can't seem to find the correct place to include the xsl:sort element in my XSL_FO Stylesheet. I keep getting errors in FOP saying "xsl:sort is not allowed in this position in the stylesheet". Here's my code:

<xsl:template match="/">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>
<fo:simple-page-master master-name="page1">
<fo:region-body margin-top="3cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="page1">
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="publications/Items/Item"/>
</fo:flow>
</fo:page-sequence>

</fo:root>
</xsl:template>

<xsl:template match="publications/Items/Item/name">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</xsl:template>

</xsl:stylesheet>

Any help would be great. Thanks, Craig.

_________________________________________________________________
MSN Messenger 7.0 has launched - FREE download! http://messenger.msn.co.za?DI=1054&XAPID=2532


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.