Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Talk:XPath

Page contents not supported in other languages.
Add topic
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

Incorrect lede?

[edit]

Is the first sentence of the lede "XPath" is an expression language designed to support the query or transformation of XML documents" incorrect, as XPath is only for querying, not for transformation? It's not quite clear what is meant by "support" in that sentence, and even if it were technically true, would it be better to describe instead what XPath itself does? Yxtqwf (talk) 00:24, 10 March 2025 (UTC)Reply

"XPath 1.0 is still the version that is most widely available" -> newer sources?

[edit]

The link is an old one, but I didn't found newer statistics. Has someone an Idea ? 213.55.220.85 (talk) 13:26, 18 September 2025 (UTC)Reply