Sergey,
I'm not quite sure I understand what you mean, but wouldn't it be more
natural to put the numeric value of each colour next to its name in the
XML input? XPath has no way of referencing a variable whose name is
given by an expression.
Tom Kaiser
Sergey Skvortsov wrote:
>
> example:
> file css.xml
>
> <?xml version="1.0" ?>
> <css>
> a {color:<var name="site.color.dark"/>;}
> </css>
>
> file css.xsl
>
> <?xml version="1.0" ?>
> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="text"/>
> <!-- ======================================================== -->
> <xsl:variable name="site.gray.dark" select="'#666666'" />
> <!-- ======================================================== -->
> <xsl:template match="css">
> <xsl:apply-templates/>
> </xsl:template>
> <!-- ======================================================== -->
> <xsl:template match="var">
> ??????????????????????
> </xsl:template>
> <!-- ======================================================== -->
> </xsl:transform>
>
> i want next result:
> a {color:#666666;}
>
> it's possible?
> what i need insert instead '??????????????????????' ?
>
> ex. <xsl:value-of select="{$@name}"/>,
> but it is incorrect :)
>
> --
> Sergey Skvortsov
> mailto: [EMAIL PROTECTED]
> http://godegisel.protey.ru/
> ICQ 38693706