Skip to content

Line breaks in string literal #6

Closed
@martin-honnen

Description

@martin-honnen

While playing with the XPath notebook I found that a sample like

let $xml1 := parse-xml('<root>
  <item>a</item>
  <item>b</item>
</root>')
return $xml1/root/item

runs fine but syntax errors are displayed for the second, third line and fourth line: "unexpected token".
That raises the question whether line breaks in XPath string literals are allowed, I think they are allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions