Subject: Re: [xsl] taking a literal or a attribute value From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 26 May 2003 13:23:00 -0400 |
Cheers, Wendell
i would like to set a xml element attribute to the value of an currently processed element or a literal.
i could do it for sure like
<xsl:choose>
<xsl:when test="@width"><xsl:value-of select="@width" /></xsl:when> <xsl:othrwise>100%</xsl:othrwise>
</xsl:choose>
i just wonder if there are any nice xpaths ways to make this more simple..
___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_ "Thus I make my own use of the telegraph, without consulting the directors, like the sparrows, which I perceive use it extensively for a perch." -- Thoreau
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] taking a literal or a attribu, florian | Thread | Re: [xsl] taking a literal or a att, David Carlisle |
Re: [xsl] XSL - avoiding code dupli, Wendell Piez | Date | [xsl] finding the first element of , Jon Steeves |
Month |