02.06.2013 Views

XML Demystified

XML Demystified

XML Demystified

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 9 XQuery<br />

You can use this same command to run all the examples in this chapter; however,<br />

for each example you’ll need to change the name of the query from catalog.xq to<br />

the name we give to the query.<br />

Nothing much happens when you run Saxon-B—at least nothing you can see on<br />

the screen. Open the output.html in an editor and you’ll see the result of your<br />

XQuery. It should look like this:<br />

<br />

<br />

List of titles in this catalog:<br />

Are You Experienced?<br />

Houses of the Holy<br />

How to Dismantle an Atomic Bomb<br />

Physical Graffiti<br />

Rush in Rio<br />

Songs in the Attic<br />

The Times They Are A-Changin'<br />

<br />

<br />

<br />

Figure 9-1 shows the result of your XQuery when it’s displayed by a browser.<br />

Figure 9-1 Your browser displays the result of your XQuery request.<br />

125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!