[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Searching for individual characters within an attribute?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|