RE: [xsl] XSL-FO & the xsl:sort element

Subject: RE: [xsl] XSL-FO & the xsl:sort element
From: <tomas.vanek@xxxxxxxxxxxxx>
Date: Tue, 7 Jun 2005 12:51:21 +0200
<fo:flow flow-name="xsl-region-body">
	<xsl:apply-templates select="publications/Items/Item">
		<xsl:sort select="name" order="ascending"/>


-----Original Message-----
From: craig webber [mailto:craigwebber@xxxxxxxxxxx]
Sent: Tuesday, June 07, 2005 12:43 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] XSL-FO & the xsl:sort element

I'm 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="";>

<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


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


Any help would be great. Thanks, Craig.

MSN Messenger 7.0 has launched - FREE download!

This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information.  If you have received it in
error, please notify the sender immediately and delete the original.  Any
other use of the email by you is prohibited.

Current Thread