[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Searching for individual characters within an attribute?

Subject: Re: Searching for individual characters within an attribute?
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Mon, 17 Jan 2000 13:50:17 -0500
xsl contains function individual
If you are using XSLT 1.0, you can use the 'contains' function as
defined in the XPath spec section 4.2.


"Araquel, Ed E." wrote:
> Is it possible to do this?
> For example
> <nm>
>         <G V="Ed" CLAS="[B R C]"/>
>         <G V="B" CLAS="[B R I]"/>
>         <F V="Araquel" CLAS="[B R C]"/>
> </nm>
> I would like to be able to pick out that a G element contains a middle
> initial of a person's name. This is done by looking at the CLAS attribute
> and finding an I in there. The other characters within CLAS can be a whole
> range of things which means I can't just search for a whole string like "[B
> R I]".
> Any ideas?
> Ed
> --
> Ed Araquel
> Mayo Foundation
> 200 1st St. SW - Siebens 7
> Rochester, Minnesota
> 55905
> (507) 538-1023
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Steve Tinney                                        Babylonian Section
                                 *   University of Pennsylvania Museum
stinney@xxxxxxxxxxxxx                          Phila, PA. 215-898-4047

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.