Using the code from this W3Schools sample:
<html>
<body>
<h1>Bookstore</h1>
<ul>
{
for $x in doc("books.xml")/bookstore/book
order by $x/title
return <li>{data($x/title)}. Category: {data($x/@category)}</li>
}
</ul>
</body>
</html>
I saved it to test.html & opened it in a browser. All I see is the code rather than the result.
I am obviously missing something; how do I see the results?
Thanks.