You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by fxp <fx...@laposte.net> on 2002/09/07 10:46:28 UTC
Xindice inside Xsp
Hi,
I've been looking everywhere for an exemple of code to call a document from inside an xsp.
A lot of tutorials say how to config the sitemap, but the only thing I've found on xsp xmldb was about exist (and a bit old I think).
Can someone give me an example?
Thanks a lot
Re: Xindice inside Xsp
Posted by fxp <fx...@laposte.net>.
Thanks, at least it's clear.
I'm not bothering you anymore. I really thought I could use xindice with the
same ease as esql.
Cheerio
François
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Xindice inside Xsp
Posted by John Moylan <jo...@rte.ie>.
You need to search the archives and google for information on how to use
Xindice from Cocoon. It has been done many times before and is well
documented. I myself use it. Have a look at the sitemap for 2.03 and
grep for XMLDB.
John
fxp wrote:
>Thanks,
>but I really need to make xpath queries against my documents, and I thought
>Xindice was the key (it works fine). But if I can't produce html pages from
>it within cocoon, it's useless.
> Exist seems to be ready for cocoon's users who don't know much about
>Java,(or haven't got time to invest much in it)
> (I've found th Exist xmldb.xsl (in the source), and its documentation.
>http://www.pm.tu-chemnitz.de:8080/cocoon/documents/apidocs/org/apache/cocoon
>/components/source/XMLDBSource.html
> I suppose it'll be a long job to apply it to xindice, even if the
>logicsheet is said to work with other xml db Api compliant database)
> I'll shift to exist.
>
>Thanks a lot for your Help.
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
******************************************************************************
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RT� may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
******************************************************************************
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Xindice inside Xsp
Posted by Vadim Gritsenko <va...@verizon.net>.
fxp wrote:
>Thanks,
>but I really need to make xpath queries against my documents,
>
You do not need anything except util logicsheet or include transformer
then. XMLDB protocol supports xpath.
Vadim
> and I thought
>Xindice was the key (it works fine). But if I can't produce html pages from
>it within cocoon, it's useless.
> Exist seems to be ready for cocoon's users who don't know much about
>Java,(or haven't got time to invest much in it)
> (I've found th Exist xmldb.xsl (in the source), and its documentation.
>http://www.pm.tu-chemnitz.de:8080/cocoon/documents/apidocs/org/apache/cocoon
>/components/source/XMLDBSource.html
> I suppose it'll be a long job to apply it to xindice, even if the
>logicsheet is said to work with other xml db Api compliant database)
> I'll shift to exist.
>
>Thanks a lot for your Help.
>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Xindice inside Xsp
Posted by fxp <fx...@laposte.net>.
Thanks,
but I really need to make xpath queries against my documents, and I thought
Xindice was the key (it works fine). But if I can't produce html pages from
it within cocoon, it's useless.
Exist seems to be ready for cocoon's users who don't know much about
Java,(or haven't got time to invest much in it)
(I've found th Exist xmldb.xsl (in the source), and its documentation.
http://www.pm.tu-chemnitz.de:8080/cocoon/documents/apidocs/org/apache/cocoon
/components/source/XMLDBSource.html
I suppose it'll be a long job to apply it to xindice, even if the
logicsheet is said to work with other xml db Api compliant database)
I'll shift to exist.
Thanks a lot for your Help.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Xindice inside Xsp
Posted by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com>.
Hi,
If you are looking for a stylesheet to retrieve data from a Database,
better look for ESQL logicsheet
Antonio Gallardo
On Sat, 7 Sep 2002, Vadim Gritsenko wrote:
> fxp wrote:
>
> >Thanks Vadim,
> >but I was looking at something like the Exist page shows: (with
> ><xmldb:collection> tags). Actually, I couldn't even work out the namespace
> >for xindice inside an xsp.
> >
>
> Hey man, you are talking "logicsheets" here. Answer is simple: there is
> no one for XMLDB.
>
> List of all logicsheets is available in cocon.xconf, or just list
> directory: src\java\org\apache\cocoon\components\language\markup\xsp\java
>
>
> >*************
> >The Exist page
> >*************
> >
> ><xsp:page xmlns:xsp="http://apache.org/xsp"
> > xmlns:xmldb="http://exist-db.org/xmldb/1.0">
> > <document>
> > <body>
> > <section title="View document">
> > <p>Retrieving document
> ><xsp:expr>request.getParameter("doc")</xsp:expr></p>
> > <xmldb:collection uri="xmldb:exist:///db/shakespeare/plays">
> > <xml-source>
> > <xmldb:get-document encoding="ISO-8859-1" as="xml">
> >
>
> If you want just to get document, you can use util logichseet's include
> tag, and include xmldb URL.
>
> Vadim
>
>
>
> ><xmldb:name>request.getParameter("doc")</xmldb:name>
> > </xmldb:get-document>
> > </xml-source>
> > </xmldb:collection>
> > </section>
> > </body>
> > </document>
> ></xsp:page>
> >
> >Thanks a lot if you have a hint for me, I'm not a Java geek.
> >François
> >
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Xindice inside Xsp
Posted by Vadim Gritsenko <va...@verizon.net>.
fxp wrote:
>Thanks Vadim,
>but I was looking at something like the Exist page shows: (with
><xmldb:collection> tags). Actually, I couldn't even work out the namespace
>for xindice inside an xsp.
>
Hey man, you are talking "logicsheets" here. Answer is simple: there is
no one for XMLDB.
List of all logicsheets is available in cocon.xconf, or just list
directory: src\java\org\apache\cocoon\components\language\markup\xsp\java
>*************
>The Exist page
>*************
>
><xsp:page xmlns:xsp="http://apache.org/xsp"
> xmlns:xmldb="http://exist-db.org/xmldb/1.0">
> <document>
> <body>
> <section title="View document">
> <p>Retrieving document
><xsp:expr>request.getParameter("doc")</xsp:expr></p>
> <xmldb:collection uri="xmldb:exist:///db/shakespeare/plays">
> <xml-source>
> <xmldb:get-document encoding="ISO-8859-1" as="xml">
>
If you want just to get document, you can use util logichseet's include
tag, and include xmldb URL.
Vadim
><xmldb:name>request.getParameter("doc")</xmldb:name>
> </xmldb:get-document>
> </xml-source>
> </xmldb:collection>
> </section>
> </body>
> </document>
></xsp:page>
>
>Thanks a lot if you have a hint for me, I'm not a Java geek.
>François
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Xindice inside Xsp
Posted by fxp <fx...@laposte.net>.
Thanks Vadim,
but I was looking at something like the Exist page shows: (with
<xmldb:collection> tags). Actually, I couldn't even work out the namespace
for xindice inside an xsp.
*************
The Exist page
*************
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:xmldb="http://exist-db.org/xmldb/1.0">
<document>
<body>
<section title="View document">
<p>Retrieving document
<xsp:expr>request.getParameter("doc")</xsp:expr></p>
<xmldb:collection uri="xmldb:exist:///db/shakespeare/plays">
<xml-source>
<xmldb:get-document encoding="ISO-8859-1" as="xml">
<xmldb:name>request.getParameter("doc")</xmldb:name>
</xmldb:get-document>
</xml-source>
</xmldb:collection>
</section>
</body>
</document>
</xsp:page>
Thanks a lot if you have a hint for me, I'm not a Java geek.
François
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Xindice inside Xsp
Posted by Vadim Gritsenko <va...@verizon.net>.
fxp wrote:
> Hi,
> I've been looking everywhere for an exemple of code to call a document
> from inside an xsp.
>
> A lot of tutorials say how to config the sitemap, but the only thing
> I've found on xsp xmldb was about exist (and a bit old I think).
>
> Can someone give me an example?
> Thanks a lot
XMLDBSource.java has a code showing how to work with xmldb from the
Java. Xindice has own examples too.
Vadim
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>