Reputation: 4982
In xquery, is there any difference between single and double quotes?
Upvotes: 1
Views: 1018
Reputation: 338316
No. For string literals, they work exactly like in JavaScript.
Spec: XQuery 1.0, Section A.2.1: Terminal Symbols - StringLiteral:
StringLiteral ::= ('"' (PredefinedEntityRef | CharRef | EscapeQuot | [^"&])* '"') | ("'" (PredefinedEntityRef | CharRef | EscapeApos | [^'&])* "'")
Upvotes: 1