[xquery-talk] XML Output of Web Search Results?
Wei, Alice J.
ajwei at indiana.edu
Fri Mar 14 08:51:57 PST 2008
I am not sure exactly what you mean here. I know that in XPath you can specify a contain() and then specifically say what phrase or word you want the element to contain and then bring the output. However, I am calling this from the web interface with request:get-paremeter().
In the past, I use a command prompt with Saxon to call up an external variable, and then feed it to the xquery, and then output it to an external XML file. However, I cannot send this to a prompt when the variable is now on the GUI interface, can I?
Any suggestions is appreciated.
School of Library and Information Science
Indiana University Bloomington
ajwei at indiana.edu
From: Daniel E. Renfer [duck at kronkltd.net]
Sent: Friday, March 14, 2008 8:31 AM
To: Wei, Alice J.
Subject: Re: [xquery-talk] XML Output of Web Search Results?
Wei, Alice J. wrote:
> This sounds like a weird question, but I have now successfully compiled my XQuery on the web that performs results from another stored collection. My question is, is there some way that I can do the similar thing, but provide an additional link to the "XML" original code of the file without having everything formatted by the HTML of whatever the result was to be generated?
> For example, if my search term is hello, then the result would give me all the results that contain hello in some parameter. If I click another link, it would give me the XML output of results that contain hello in the same parameter.
> Is this possible?
> Thanks to those who can help.
> Alice Wei
> MIS 2008
> School of Library and Information Science
> Indiana University Bloomington
> ajwei at indiana.edu
Are you generating the HTML result in XQuery, or are you using the
XQuery to generate the XML data and then transforming it to HTML by some
other means? (ie. XSLT)
I don't know what tools you are using to serve these pages and run the
XQuery, but couldn't you have two different locations? One would combine
your model (The XML result) with your view (XSLT or similar) to produce
the HTML page, and the other would just serve your model directly as the
I know in Orbeon Forms (the platform I use) an operation like this is
Daniel E. Renfer
More information about the talk