xsl-list
[Top] [All Lists]

[xsl] Searching text within a node

2009-08-04 15:13:46

I have a block of xml that looks like the following.

 <Form>
 <Names>
  <LastName>Jones</LastName>
  <LastName>Smith</LastName>
  <LastName>Anderson</LastName>
  </Names>
  </form>


I need to display blocks of code only if text matches the text in any of the three nodes(or more) in LastName. So you may have a block of code that should display only if "Jones" is in the above nodes. I've examined XSL IF and Choose and can't really find anything that works for this purpose. Thanks.

--~------------------------------------------------------------------
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>