Code: Select all
xquery version "3.0";
declare variable $docTitle := "Shakespeare Plays";
declare variable $docs :=
<!-- Use $docTitle variable -->
for $name in $docs/PLAY/TITLE
(: I woud like to insert the character list for each play here :)
for $character in $docs//PERSONA
It works but not quite the way I expected it. I'm trying to insert the section beginning with <h3>Characters</h3> and the associated query inside the first query but when I put it inside I get an error: Left operand of '>' needs parenthesis.
I have not been able to find good documentation as to how to nest queries. Is this possible?
If I run the document as it is in the version above it works but not as I want it to. It generates a list names for all the plays in the collections and then it builds a complete list of all characters in all plays. Using oXygen 17.1