Subject: Re: Searching for individual characters within an attribute? From: Steve Tinney <stinney@xxxxxxxxxxxxx> Date: Mon, 17 Jan 2000 13:50:17 -0500 |
If you are using XSLT 1.0, you can use the 'contains' function as defined in the XPath spec section 4.2. Steve "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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Searching for individual charac, David Carlisle | Thread | Modular File Organization, Benjamin Corliss |
Re: Searching for individual charac, David Carlisle | Date | Modular File Organization, Benjamin Corliss |
Month |