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

testing element name

Subject: testing element name
From: "Alex Reuter" <xslalex@xxxxxxxxxxx>
Date: Fri, 09 Aug 2002 16:08:48 +0000
alex reuter


Hello List,
I am trying to display certain xml elements certain ways, based on what type of element they are. Here is an example:
<view:datalist>
<view:textfield>Alex</view:textfield>
<view:dropdown>Alex, Reuter</view:dropdown>
<view:datalist>


What I'd like to do is loop through the children of the datalist:
<xsl:for-each select='view:datalist/child::*">
<td>
<xsl:if test="view:textfield">
<xsl:if>
<xsl:if test="view:dropdown">
<xsl:if>
<td>
</xsl:for-each>

And do different kinds of processing for the different types.

Basically, my question is what expressions should I put in the xsl:if test"?" above?

Thanks in advance,
Alex

_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



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.