[xsl] Should be simple?

Subject: [xsl] Should be simple?
From: "Cross, Neal - Development Controller" <ncross@xxxxxxxxx>
Date: Tue, 13 May 2003 11:31:18 +0100
I have this problem which is driving me nuts!

My XML is
    <d>agriculture                                         ;</d>
    <d>general agriculture                                 ;</d>
    <d>fruit farming or crop cultivation                   ;</d>

And I need to acces it as an external document using 

<xsl:template name="map item">
<xsl:param name="code"/>
<xsl:param name="item"/>
<xsl:param name="document"/>
<xsl:variable name="area" select="document('codemap.xml','')/map/x[a=$item and b=$code]"/>
    <xsl:value-of select="$area/x/d"/>

I am hopefully trying to get the value of 'd' so that I can add this as an attribute in my output XML.

Any ideas?

<name>Neal Cross</name>
<role>Senior Developer</role>
<company>ICC Information Ltd.</company>
<telephone>0208 4818770</telephone>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread