You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andre Juffer <aj...@sun3.oulu.fi> on 2004/12/31 13:47:06 UTC
XMLDBTransformer
Dear List,
is it possible to actually read an entry from a XML database with the
XMLDBTransformer? According to the javadocs at
http://cocoon.apache.org/2.1/apidocs/index.html
this transformer can carry out resource creation, deletion, and XUpdate
command execution, but there is no mention about simply reading (or
extracting) an entry, for instance using XPath, e.g.
/persons/person[@id='foo']. It is quite possible to accomplish this
through XInclude,
<xi:include href="cocoon://persons/foo" />
(I have XIndice running as a separate servlet). This however fails if
the person with id 'foo' does not exist.
I would like to be able to emply the XMLDBTransformer (in a similar
style as SQLTransformer) for this purpose. One reason is that
XMLDBTransformer returns an error message, like
<db:query type="update" oid="xmldb-object-id" result="failure">
Resource xmldb-object-id is not found
</db:query>
if something is wrong.
How would I be able to simply read from a XML database using
XMLDBTransformer?
Thanks,
--
Andre H. Juffer | Phone: +358-8-553 1161
The Biocenter and | Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org