[xsl] xsl:attempting a preceding-sibling test with different code

Subject: [xsl] xsl:attempting a preceding-sibling test with different code
From: "Carrie Kaufman" <ckaufman01@xxxxxxxxxxx>
Date: Thu, 10 Oct 2002 17:28:57 -0400
I am using msxml v2 (not by choice), and not having any luck learning a scripting language on the fly. As a result, I am attempting to produce the following: (Note: xsl:key, preceding-sibling, content(), etc. are not available in msxml v2 otherwise this would be a lot simpler). My code, as shown below does not produce any results. Am I using the context() property incorrectly?


<xsl:for-each select="context()[. != '']" order-by="type">
    <xsl:when  test="context()[type != '']">
      <xsl:if test="type[text() != context(-2)/text()]">
        <xsl:value-of select="type"/>
    <xsl:otherwise>Unknown Type</xsl:otherwise>
  <DIV CLASS="pe2">
     <xsl:for-each select="name[. != '']">

Intended Result: Grass Shea Wrigley


Unknown Type

TIA, I can really use the help!
Carrie Kaufman
GIS Analyst

MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx

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

Current Thread