Subject: Re: [xsl] taking a literal or a attribute value From: florian <csshsh@xxxxxxxxxxxxxxx> Date: Sat, 7 Jun 2003 19:27:05 +0200 |
hi!
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..
thanks alot in advance!
ciao! florian
<foo width="100%"> <xsl:copy-of select="@width"/>
i dont really understand that code though. where is the actual condition?
ciao! florian
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Beginner question, Ron Dyck | Thread | [xsl] Re: taking a literal or a att, Dimitre Novatchev |
RE: [xsl] Transferring xmlns aliase, Michael Kay | Date | [xsl] Re: taking a literal or a att, Dimitre Novatchev |
Month |