|
Subject: [xsl] call-template and execute xsl command From: Eric Smith <Eric.Smith@xxxxxxxxxxxx> Date: Mon, 15 Apr 2002 19:26:42 +0200 |
Hi
I have a named template of the following form:
<xsl:template name= "attributes">
<xsl:choose>
<xsl:when test="@font-size">
<xsl:attribute name="font-size"><xsl:value-of select="@font-size"/></xsl:attribute>
</xsl:when>
<xsl:when test="@text-align">
This text prints out if @text-align but the xsl:command is not executed
<xsl:attribute name="text-align"><xsl:value-of select="@text-align"/></xsl:attribute>
</xsl:when>
</xsl:choose>
</xsl:template>
called like this:
<xsl:variable name='y'>
<xsl:call-template name='attributes'/>
</xsl:variable>
However, as you may see by my notes above, text prints out fine
subject to the condition, however I cannot change or add
attributes as required.
Any suggestions?
thanx
--
Eric Smith
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Re: Re: Re: Re: Re: Combi, Daniel Brockman | Thread | Re: [xsl] call-template and execute, Greg Faron |
| Re: [xsl] mystery #3: rendering emb, Gary Lawrence Murphy | Date | [xsl] further question regarding th, 林 子芯 |
| Month |