From: Andrzej J. T. <an...@ch...> - 2007-08-29 00:19:34
|
Need some advice. I want to use HTTP to store an XML document in eXist...but the source document needs to be transformed (actually, embedded in some wrapper XML to be exact). I want the transformation to happen in eXist, so the sourcing application only has to deal with the original xml format. Seems like there would be two ways to do this: 1) Do a post of the XML document to a xquery.xql based url, and then initiate the transformation and update/insert in xquery code. 2) Do a put of the XML document, and use an xquery trigger to modify the document before it gets actually persisted. Are both of these viable solutions (I'm not sure if you can use an xquery trigger in option 2 in this way)? Any pros/cons to either approach? That is, which should I lean towards? Also, is it recommended to put the xquery source (.xql) in the database itself, or in a subdir of the war file. All the examples seem to be in the war subdirectory. Thanks for any/all advice and insight on this. Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com |