----- Original Message -----
From: "bob mcwhirter" <[EMAIL PROTECTED]>
> > args[1] can be going after an Element or an Attribute if
> > StringFunction.evaluate always just printed the value of Attr or
> > Elements...Attributes work great (just returns obj.getValue()) but
> > getElementStringValue doesn't print just the Element's getText() as I
would
> > like it to...I guess that I could just replace the JDOM
DocumentNavigator
> > with a custom one...
>
> It returns the XPath string-value of the element, which is recursive,
> according to the spec.

Yes. The string-value of an element is recursive. If you don't want to be
recursive with text inside elements you can use the text() function instead.

e.g.

//foo/bar/text()

would return a list of text nodes which are immediate children of <bar>
elements but not any text inside child elements of <bar>s.

James




_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to