i don't think you can do that in XPath 1.0. you might have to look for some extensions
http://www.dpawson.co.uk/xsl/sect2/nono.html#d1761e3
http://www.exslt.org/dyn/functions/evaluate/index.htm ----- Joe Gass wrote: ----
After a bit of research I think what I'm trying to do with xslt can't b
done, but someone may have some pointers
I have 2 sections in my xml - 1 with properties the 2nd with image path dat
each property can have more than 1 set of image path node
What I'm trying to do is transform the property data into the format
require at the same time finding any associatted image path
Here's my xm
<web_transfer><property><uniquereferenceid>1a</uniquereferenceid
...
</property><property><uniquereferenceid>2a</uniquereferenceid
...
</property><images><uniquereferenceid>1a</uniquereferenceid><imageurl>
http://www.com/testimage1.jpg</imageurl></images><images><id>636</id><uniquereferenceid>2a</uniquereferenceid><imageurl>
http://www.com/testimage2.jpg</imageurl></images><web_transfer
An xpath lik
/web_transfer/images[uniquereferenceid='1a'][position()=1]/imageur
works fine, when used outside my xslt
In my xsl
<xsl:template match="/"><xsl:for-each select="web_transfer/property"><xsl:variable name="myString1"><xsl:value-o
select="/web_transfer/images[uniquereferenceid=uniquereferenceid][position(
=1]/imageurl"/></xsl:variable><image1><xsl:value-of select="$myString1"/></image1></xsl:for-each></xsl:template
Hoping that the bit [uniquereferenceid=uniquereferenceid] would get fille
in to be [uniquereferenceid=1a] et
It isn't and I don't get any data bac
Any suggestions appreciatte
Thank