[xsl] XSL-FO & Selecting Attributes

Subject: [xsl] XSL-FO & Selecting Attributes
From: "craig webber" <craigwebber@xxxxxxxxxxx>
Date: Wed, 20 Apr 2005 10:59:33 +0000
I'm trying to select an attribute from my XML document in an XSL-FO transformation. Does not seem to work the same wasy as in my XSLT transformation. Here's my XML document:


<heading>Paragraph Header</heading>
<para1>Para 1 text</para1>
<para2>Para 2 text</para2>

<Item Sector="Agriculture" response="no">
<name>Poor Farmers Relief Fund</name>
<description>A Consultation on ...</description>


And here's my XSL-FO code I'm trying to use to select the attribute. Can anybody point out my error?

<xsl:template match="Item">
<xsl:value-of select="@Sector"/>

My "page-sequence" is as follows:

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


Craig Webber.

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

Current Thread