HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
In the following example we will continue to use this "books.xml" (same XML file and the section above is used) document.
See "books.xml" file in your browser .
As seen in the previous section, we can cite in results input file elements and attributes:
XQuery expression above references title element and lang attributes in the result, like this:
Above XQuery expression returns the title elements of the way and in the same manner in the input document are described in them.
Now we want to add the results of our own elements and attributes!
Now, we want to add the results HTML element. We will result in a HTML list:
XQuery expression above will generate the following results:
Next, we should attribute category as an HTML list of class attributes to use:
XQuery expression above may generate the following results: