[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Third option is to generate the stylesheet you want. I made a similar suggestion to Wong this week to convert a template file to a stylesheet to make it more dynamic. In this case you could consider your stylesheet to be a stylesheet template in which you want to fill in the variable names...
It will require an additional transform though...
Grtz
Re: [xsl] XSLT variable eval
Subject: Re: [xsl] XSLT variable eval From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Date: Wed, 01 Dec 2004 14:58:00 +0100 |
<xsl:param name="username"/>
<!-- .... -->
<xsl:template match="btr:attribute">
<xsl:attribute name="{@as}"><xsl:value-of select="${@name}"/></xsl:attribute>
^^^^^^ - how eval this variable?
CHange the param to
<xsl:param name="params"> <username>....</username> </xsl:params>
and evaluate it as $params/*[name()=current()@name]
Third option is to generate the stylesheet you want. I made a similar suggestion to Wong this week to convert a template file to a stylesheet to make it more dynamic. In this case you could consider your stylesheet to be a stylesheet template in which you want to fill in the variable names...
It will require an additional transform though...
Grtz
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT variable eval, Michael Kay | Thread | [xsl] format <xsl:message> output, Robert Soesemann |
Re: [xsl] format <xsl:message> outp, David Carlisle | Date | RE: [xsl] format <xsl:message> outp, Robert Soesemann |
Month |