danatel
danatel

Reputation: 4982

In xquery, is there any difference between single and double quotes?

In xquery, is there any difference between single and double quotes?

Upvotes: 1

Views: 1018

Answers (1)

Tomalak
Tomalak

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

Related Questions