[Home] [By Thread] [By Date] [Recent Entries]
Hi,
At 06:32 AM 1/7/2009, David wrote: pases the current node to a string function, so the function argument is the string value of the node, which is all the character data of the descendants. ... but beware, this is brittle when faced with mixed content ... test="text()[contains(.,'@')]" is somewhat less so ... or This is better, and will generally work. But if you have cases like <p>Here's my @ text</p> <p>Here's my <i>extra special @</i> text</p> and always want to report "@ found in p" and never "@ found in i", you've got a different problem on your hands. :-) Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|

Cart



