Re: [xsl] Can I test the name of the current element?

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
Adrian wrote:
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


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



Current Thread