[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: taking a literal or a attribute value

Subject: Re: taking a literal or a attribute value
From: florian <csshsh@xxxxxxxxxxxxxxx>
Date: Sat, 7 Jun 2003 19:27:05 +0200
attribute value literal

On Montag, Mai 26, 2003, at 10:55 Uhr, David Carlisle wrote:



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"/>



just saw that message =)


i dont really understand that code though. where is the actual
condition?

thanks!

ciao!
florian


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.