Results 204 comments of Reece H. Dunn

@michaelhkay point 9 is actually correct, so I'll revert/restore that wording: ``` let $x := doc('a.xml')/*, $y := $x//* return $y[@value gt $x/@min] ``` expands via the multi-variable rule to:...

The `/proc` check is used to implement `mbrola_is_idle` which checks the `Status` line to determine if the mbrola process is still running, or is sleeping. It is supported by various...

https://github.com/search?q=%22element+div%22+language%3AXQuery+&type=code returns 298 occurrences. I haven't checked other keywords.

@johnlumley You may run into https://www.w3.org/Bugs/Public/show_bug.cgi?id=30015. Since then I've modified that to: CastExpr ::= TransformWithExpr ( "cast" "as" SingleType )? TransformWithExpr ::= ArrowExpr ("transform" "with" "{" Expr? "}")? IIRC, that's...

The rationale for allowing `fn:parse-html` to take binary objects is so that it can use the HTML encoding detection/conversion logic, and be compatible with content sent as binary in which...

My reseration on restricting enoding to a `fn:*-doc` function is that binary/encoded text could come from other sources -- network request, zipped/compressed files, etc. Allowing binary items on other parse...

My preferences would be for a) adding a new `document-fragment` node type, and b) using `fragment::` as the axis name.

> Why is a document fragment node needed? Isn't XQuery/XPath already able to parse e.g. `parse-xml-fragment('p1p2')` into a `document-node()` with two element child nodes? I am not familiar enough with...

Ah, yes, it is added to the head element if it occurs before any other content (https://html.spec.whatwg.org/#parsing-main-inhead), otherwise it is included in the body element, so `fn:parse-html("p1pTp2")` would place the...

@michaelhkay That could work for adding documents in a database. For the case of `fn:parse-html` and when the html file is bound to the context item (e.g. the input for...