O
Oleg.Ogurok
Hi there,
In an XSLT stylesheet, I need to get a value of an attribute. The
problem is that I need to generate the name of the attribute on the
fly.
Is it possible to get the value of an attribute knowing its string
represented name?
E.g.
<xsl:attribute name="name">
<xsl:value-of select="concat($FieldPrefix, 'Name')"/>
</xsl:attribute>
The result is the concatenated string, e.g.
<pwm_regardingrulesetid name="MyGivenPrefixName" ...
However, MyGivenPrefixName is an attribute name in the source XML file,
and I need to get its value instead.
I tried the following, which didn't work
<xsl:value-of select="@(concat($FieldPrefix, 'Name'))"/>
Thanks,
-Oleg.
In an XSLT stylesheet, I need to get a value of an attribute. The
problem is that I need to generate the name of the attribute on the
fly.
Is it possible to get the value of an attribute knowing its string
represented name?
E.g.
<xsl:attribute name="name">
<xsl:value-of select="concat($FieldPrefix, 'Name')"/>
</xsl:attribute>
The result is the concatenated string, e.g.
<pwm_regardingrulesetid name="MyGivenPrefixName" ...
However, MyGivenPrefixName is an attribute name in the source XML file,
and I need to get its value instead.
I tried the following, which didn't work
<xsl:value-of select="@(concat($FieldPrefix, 'Name'))"/>
Thanks,
-Oleg.