![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - need help for choose loop [Thread Next] Re: need help for choose loopTo: NULL Date: 8/1/2007 3:32:00 PM U¿ytkownik "kamkaro" <kamkaro@d...> napisa³ w wiadomo¶ci news:053CF4F4-85DB-4705-A0D7-AB5C1937183E@m...... > Hi all, > can someone tell me, how do i use choose/when loop in xslt. Actually, in > my > 'Zm' node have attributes (ab, note and value). I have to display all 'ab' > and 'note' and if note is not there than 'value' display instead of note. > i > tried couple ways but having blank. really thankful. > XML: > <Zm ab="label" note="region sammmm"/> > <Zm ab="label" note="region sammmm"/> > <Zm ab="label" value="region sammmm"/> <xsl:apply-templates select="Zm"/> and in "Zm" template: <xsl:value-of select="concat(@note,@value)"/> or something like that of course my example doesn't work fine when Zm elements will contain both attributtes @note and @value, but I hope is faster than <xsl:for-each> -- td www.paranoja.org | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
