|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: taking a literal or a attribute value
Florian,
This hardly counts as "nice"... <element attribute="{concat(@width, substring('100%',1,boolean(@width)*4))}"> but it should work (untested though). If you wanted to parameterize '100%' you could use concat(@width, substring($value,1,boolean(@width)*string-length($value))) If you do this, write a comment to explain it for the next poor soul who has to reach into your code. :-> Me, I'm going off line for a few days ... and there may be more elegant solutions. Cheers, Wendell At 11:01 AM 5/26/2003, you wrote: i would like to set a xml element attribute to the value of an currently processed element or a literal.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








