XQuery TutorialLesson 69Free preview
XQuery HTML
This lesson is part of XML · All levels
Summary
FLWOR can generate HTML fragments directly so that XQuery queries can be the layer of web application display. By writing the HTML element constructor in the return section, XML data is transformed into a ready-to-display page. In XQuery 3.0 and above, the HTML serialization method can be expressed via the output option.
Key points
- The FLWOR section can be a constructor of HTML elements
- The expression inside the curly braces {} inserted the value
- This combination allows XQuery as a presentation layer
- XQuery 3.0+ supports the declare option output method "html"
- The resulting HTML can be directly rendered by the browser.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.