| 
 
Subject: Re: [xsl] Can I test the name of the current element? From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Fri, 31 Jan 2003 01:23:47 +0200  | 
I am trying to test the name of the current element as shown below.You can get name of an element using name() or local-name() function. But for testing purposes it's safer to use self::foobar pattern.
However I need to process them a second time differently:
<xsl:for-each select="CoordGeom/*">
  <xsl:if test="position()=1">
    M <xsl:call-template name="getStart" />
  </xsl:if>
  <xsl:choose>
    <xsl:when test=".=Line"> <!-- something like this -->
<xsl:when test="self::Line">-- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] Can I test the name of the cu, Adrian | Thread | Re: [xsl] Can I test the name of th, David Carlisle | 
| RE: [xsl] Can I test the name of th, Ross Ken | Date | Re: [xsl] Can I test the name of th, David Carlisle | 
| Month |