W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

RE: Need help with an XPath expression in XSLT

From: Brenda Bell <bbell@juicesoftware.com>
Date: Wed, 10 Apr 2002 13:02:22 -0400
Message-ID: <846B0B02E1B78B49B678EDCC00EB2962FB4D23@mail01.ent.juice.com>
To: Brenda Bell <bbell@juicesoftware.com>, xmlschema-dev@w3.org
Disregard... I found it myself!!!

-----Original Message-----
From: Brenda Bell [mailto:bbell@juicesoftware.com]
Sent: Wednesday, April 10, 2002 12:56 PM
To: xmlschema-dev@w3.org
Subject: Need help with an XPath expression in XSLT



I have a document with the following structure: 

<root> 
  <A> 
    <B>1</B> 
    <C> 
      <D>abc</D> 
    </C> 
  </A> 
  <A> 
    <B>2</B> 
    <C> 
      <D>xyz</D> 
    </C> 
  </A> 
</root> 

I have an XSLT transformation where I need to add an attribute to any given
element <D> if the value of <B> is 1 where <D> and <B> have the same
ancestor <A>.

I'm having trouble getting the right expression on my <xsl:if> element to
test the value of the right <B> element given a context node of <D>.

Brenda Bell 
Sr. Software Architect 
Juice Software, Inc. 
Phone: 603.428.3994 
Cell: 603.494.8206 
Fax: 603.428.8713 
Email: bbell@juicesoftware.com 
Received on Wednesday, 10 April 2002 13:02:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT