[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XQuery in Web Application

Wei, Alice J. ajwei at indiana.edu
Fri Mar 7 16:59:41 PST 2008


  XQuery in Web Application
Hi, Woflgang:

   Thanks for your note. Must have been my misinterpretation of the function.
   I thought the modules in different examples I have seen over the xquery samples depends on the location of where the set of where the file is.

   To test out and see if I have any more errors, I tried putting it online at the directory where I work at, but now I only see the code and no HTML output. Is there a specific place of where we are intend to put these web application query files to have them be displayed?

I welcome any of you who can give me some tips on this.

Alice
======================================================
Alice Wei
MIS 2008
School of Library and Information Science
Indiana University Bloomington
http://x-query.com/mailman/listinfo/talk
________________________________________
From: Wolfgang [http://x-query.com/mailman/listinfo/talk]
Sent: Friday, March 07, 2008 3:32 PM
To: Wei, Alice J.
Cc: http://x-query.com/mailman/listinfo/talk
Subject: Re:  XQuery in Web Application

> I intend on turning the code below into a web interface so I could
> search through my database collections. I used Saxon to debug my
> errors, and it apparently is giving me something like this in the
> following:
>
> F [Saxon9B XQuery] Cannot find a matching 1-argument function named
> {http://chausie.slis.indiana.edu:8080/exist/xquery/request}get-parameter()

This is an eXist-specific function as can be seen from the namespace URI
(which is completely wrong btw). If you want to test queries on
different implementations you have to stick to those functions defined
in the specs (http://www.w3.org/TR/xpath-functions/).

 > declare namespace
request="http://chausie.slis.indiana.edu:8080/exist/xquery/request";

1) the URI is wrong and 2) you should use an import:

import module namespace request="http://exist-db.org/xquery/request";

Please consult the many examples provided in the distribution and the
documentation!

Wolfgang





Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.