For kicks, I'm trying to update the stylesheet used to write the DT
output. I have one line where I'm not getting the results I want:

> <xsl:value-of select="*[(@attr-name = $field-name)][1]/value[1]" />
> I've also tried
> <xsl:value-of select="*[(@attr-name = '$field-name')][1]/value[1]" />
> and
> <xsl:value-of select="*[@attr-name = $field-name][1]/value[1]" />
> and
> <xsl:value-of select="*[@attr-name = '$field-name'][1]/value[1]" />

all of which are valid XPATH expressions, and none of which work.

I've checked the value of $field-name and it is definitely an actual
field name, but the select isn't working, which I assume means I'm
literally looking for "@attr-name = $field-name". I don't know what
those parens inside the [] are for, but they don't seem to affect things
one way or the other.

So, is it possible to use a variable in an XPATH select like this, and
I'm just not finding the syntax? Minor googling did not provide a
optimistic outlook.

Thanks for any help.

nate_spears's Profile:
View this thread: