xsl-list
[Top] [All Lists]

Re[2]: XSLT variable eval

2004-12-01 06:10:08
Hi, David Carlisle,

Wednesday, December 1, 2004, 3:54:52 PM:

DC><xsl:attribute name="{(_at_)as}"><xsl:value-of 
select="${(_at_)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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>