Talk:XPath

Stuff removed from Boolean data type article
The following section was removed from the article Boolean data type: begin removed text

XML Path Language (XPath 2.0) and XML Query Language (XQuery 1.0) both rely on XML Schema for Boolean data type support. The XML Schema xs:boolean data type supports both true and false Boolean values. XPath and XQuery define a set of rules for calculating the effective Boolean value of expressions.

XPath 1.0 and languages based on it, like XML Stylesheet Language (XSL), also support Boolean data types and implicit calculation of effective Boolean values from non-Boolean expressions.

end removed text Is there a place for this text in the XPath-related articles? Perhaps in the Wikibook? Thanks, and all the best, --Jorge Stolfi (talk) 00:18, 31 December 2009 (UTC)

For more concrete information...
The German version is very good, with useful concept definitions and examples...87.139.31.42 (talk) 13:23, 16 December 2011 (UTC)

Is this "(A//B/*)[1]" correct?
In the article, there is a statement:

If there are several suitable B elements in the document, this actually returns a set of all their first children. ("(A//B/*)[1]" returns just the first such node.)

As I am new to XPath, I don't dare to rewrite it, but I have a feeling that right form of the expression should be:

"(A//B/*[1])[1]"


 * Correct or not, it was very poorly explained. I've tried to improve it. Mhkay (talk) 13:57, 4 June 2014 (UTC)

Why is Path (computing) not mentioned?
Historically, there is a clear relationship to the notion of paths as explained in Path (computing). This should somehow be incorporated. Alternatively, the page Path (computing) could mention more general path languages.

Wstomv (talk) 12:00, 14 September 2021 (UTC)