Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] XSLT variable eval [Thread Next] Re[2]: [xsl] XSLT variable evalTo: Date: 12/1/2004 1:11:00 PM Hi, David Carlisle,
Wednesday, December 1, 2004, 3:54:52 PM:
DC><xsl:attribute name="{@as}"><xsl:value-of select="${@name}"/></xsl:attribute>
DC> ^^^^^^ - how eval this variable?
DC> It isn't a variable just an attribute node.
DC> so
DC> <xsl:value-of select="@name"/>
DC> curly brackets {} are _never_ used in XPath expressions (except as part
DC> of a string).
perl script: $result = $stylesheet->transform($source, username => "'Andrey'");
in stylesheet: <xsl:param name="username"/> have value = 'Andrey'.
in XML: <btr:attribute name="username" as="value"/>
username == name of xsl:param, i want to obtain the value of
expression: <xsl:value-of select="variable with name in attribute @name"..
Thank.
--
Best regards,
Andrey V. Elsukov | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
