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

SV: XSL:if .. Attribute

Subject: SV: XSL:if .. Attribute
From: Klosa Uwe <Uwe.Klosa@xxxxxxxx>
Date: Thu, 21 Jun 2001 16:39:50 +0200
xsl if attribute
You can use for example:

<xsl:template match="partnerName">
	<xsl:choose>
		<xsl:when test="@kurstype='private'">
			do something ...
		</xsl:when>
		<xsl:when test="@kurstype='Unternehmer'">
			do something ...
		</xsl:when>
		<xsl:otherwise>
			do something ...
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

An so on.

-----Ursprungligt meddelande-----
Fran: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]For Loren Lai
Skickat: den 21 juni 2001 16:06
Till: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Amne:  XSL:if .. Attribute


Hello,

Can someone help me please.

This is my XML-File:

       <partner>
       <partnerName kursType="private"               
role="HE">Deutsche Bank AG</partnerName>
        <modul id="1">Finanzielle
Verhaeltnisse</modul>
        <modul id="2">Kontofuehrung</modul>
        <modul id="3">Markt und Wettbewerb</modul>
        <modul id="4">Management</modul>
       </partner>
       <partner>

.... I would like to have a XSL which checks the
attribute kursType b4 it prints out the element.

For example :
if kursType==private then print pic1.gif
if kursType==Unternehmer then print pic2.gif
Else print out anotherpicture.gif

Can comeone helps me to write this xsl-file ? or how
does the syntax looks like ?

thank you very much !

Loren :) 

=====
Gruss,

Loren Lai :)
Email:lorenlai@xxxxxxxxx

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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


Current Thread
  • XSL:if .. Attribute
    • Loren Lai - Thu, 21 Jun 2001 10:11:19 -0400 (EDT)
      • <Possible follow-ups>
      • Klosa Uwe - Thu, 21 Jun 2001 10:48:01 -0400 (EDT) <=

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.