Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cardinality of fn:string() #10

Open
djbpitt opened this issue Jun 14, 2020 · 0 comments
Open

cardinality of fn:string() #10

djbpitt opened this issue Jun 14, 2020 · 0 comments

Comments

@djbpitt
Copy link

djbpitt commented Jun 14, 2020

P. 67 says that the fn:string() function accepts any number of XML nodes, but the actual cardinality is zero or one (unlike fn:data(), which you discuss on the same page, which has cardinality of zero or more). fn:string() processes multiple nodes in your example because it is invoked independently for each of them, but if you try to pass all of them at once (fn:string(//title) if there is more than one <title> element), it raises an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant