xsl-list
[Top] [All Lists]

Re: [xsl] Testing for parent node

2011-12-30 06:13:40
Vincenzo Menanno wrote:

       <xsl:variable name="from">
          <xsl:choose>
             <xsl:when test="../parent='Field'">53</xsl:when>

You want
               <xsl:when test="parent::Field">53</xsl:when>
and so on.

             <xsl:when test="../parent='AutoEnter'">54</xsl:when>
             <xsl:when test="../parent='Validation'">55</xsl:when>
          </xsl:choose>
       </xsl:variable>

--

        Martin Honnen --- MVP Data Platform Development
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>