XQuery question

I’ve used SQL before, so the notion of XQuery isn’t **that **foreign to me.

I’m just wondering how you use XQuery. Is it part of a file? Do you need an application to use it? Do you call on it as you would an XSL or CSS stylesheet? Do you post to it like an ASP or PHP page?

I’m a little confused as to how you implement it.