1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu What Is XQueryX? pptx

2 370 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề What Is Xqueryx?
Trường học World Wide Web Consortium
Chuyên ngành Computer Science
Thể loại Appendix
Năm xuất bản 2025
Thành phố Cambridge
Định dạng
Số trang 2
Dung lượng 61,15 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Appendix B: What Is XQueryX?. One of the most recent developments in the work on XQuery is the efforts of the World Wide Web Consortium W3C to specify the XQueryX language.. This languag

Trang 1

Appendix B: What Is XQueryX?

One of the most recent developments in the work on XQuery is the efforts of the World Wide Web Consortium (W3C) to specify the XQueryX language This language enables the full rendering of XQuery in Extensible Markup Language (XML) for computer-readable use and ensures its compliance with W3C requirements XQueryX is not designed for direct human use

XQueryX is in the very early stages of development This topic is included to alert you to this emerging technology and to show the rapid pace of innovation with XML

For more information about XQueryX, check the W3C site regularly to monitor the evolution of this probable standard See the W3C paper XML Syntax for XQuery 1.0 (XQueryX) of June 7, 2001, at

http://www.w3.org/XML/Query

XQueryX is needed to make the programmatic use of XQuery consistent with other XML languages and techniques XQuery in the form you have learned it

so far does not appear in true XML format By using XQueryX, you can turn an XQuery expression into an XML document If you can represent an XQuery expression in XML through XQueryX, then all other XML techniques for navigation and modification are available to the XML programmer

Introduction

Note

Why is XQueryX

needed?

Trang 2

2 Appendix B: What Is XQueryX?

Consider the following FLWR expression from books.xml:

FOR $b IN document("books.xml")//book WHERE $b/publisher = "New Moon Books" and $b/year = "1991" RETURN

$b/title

Converting this to XQueryX produces the following XML document:

<q:query xmlns:q="http://www.w3.org/2001/06/xqueryx"> <q:flwr>

<q:forAssignment variable="$b">

<q:step axis="SLASHSLASH">

datatype="CHARSTRING">books.xml</q:constant>

</q:function>

<q:identifier>book</q:identifier>

</q:step>

</q:forAssignment>

<q:where>

<q:function name="AND">

<q:variable>$b</q:variable>

<q:identifier>publisher</q:identifier>

Books</q:constant>

</q:function>

<q:variable>$b</q:variable>

<q:identifier>year</q:identifier>

</q:function>

</q:function>

</q:step>

</q:query>

As you can see, XQueryX is not easy for humans to use, but it is extremely efficient for XML processors With the extension of XQuery into many areas of Internet and Web activity, such computer-readable and programmer-readable code is essential to the full realization of XQuery’s capabilities

Example

Ngày đăng: 21/12/2013, 05:17

TỪ KHÓA LIÊN QUAN

w