Updated extractor example (code.xq)