This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
testing element name
- From: "Alex Reuter" <xslalex at hotmail dot com>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Fri, 09 Aug 2002 16:08:48 +0000
- Subject: [xsl] testing element name
- Reply-to: xsl-list at lists dot mulberrytech dot com
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