This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

testing element name




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]