iamakimmer 0 Newbie Poster

hi,

if I have a variable such as

<xsl:variable name="name" select="name" />

and I want to reach somewhere in xpath using this variable as the attribute, such as:

sum(/document/doc/@[B]$name[/B])

this query doesn't work. is there anyway I can reach this path without knowing that the attribute name?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.