I have been reading lot of XQUERY tutorial on the web site. Almost all of them are teaching me the XQUERY syntax. Let's say i have understood the XQUERY syntax, how am i going to actually implement XQUERY on my web site?
For example, i have book.xml:
<?xml version="1.0" encoding="iso-8859-1" ?> <books> <book> <title>Doraemon</title> <authorid>1</authorid> </book> <book> <title>Ultraman</title> <authorid>2</authorid> </book> </books>
Then, i have author.xml
<?xml version="1.0" encoding="iso-8859-1" ?> <authors> <author id="1">Mr A</author> <author id="2">Mr B</author> </authors>
I want to generate HTML which looks like following:
<table> <tr><td>Title</td><td>Author</td></tr> <tr><td>Doraemon</td><td>Mr A</td></tr> <tr><td>Ultraman</td><td>Mr B</td></tr> </table>
Please show me some example. Or any web site that i can do reference. Thanks very much.