[Home] [By Thread] [By Date] [Recent Entries]
At 10:41 AM 10/13/2006, Richard wrote:
If there is a XPath expression to match elements by whether they have any text select="address[normalize-space()]" selects all address element children that have some non-whitespace text content within them. select="address[not(normalize-space()]" selects address elements that contain only whitespace, nothing, or elements containing only whitespace, nothing (or elements containing only whitespace, nothing, etc). This is because it tests for the string value of the element, after whitespace is normalized and trimmed. This can be changed or adjusted for other definitions of "content". Cheers, Wendell
|

Cart



