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/[EMAIL PROTECTED]'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: [EMAIL PROTECTED]
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
