Talk:XPath

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Stuff removed from Boolean data type article[edit]

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)[reply]

For more concrete information...[edit]

The German version is very good, with useful concept definitions and examples...87.139.31.42 (talk) 13:23, 16 December 2011 (UTC)[reply]

Is this "(A//B/*)[1]" correct?[edit]

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)[reply]

Why is Path (computing) not mentioned?[edit]

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)[reply]