Re: Storing a xml document uploaded through xmlHttpRequest to a database

2005-06-08 Thread Jonas Höglund
Well... I can't find it, so I might have read it in some mail archives or likewise, or I might just have understod it all wrong :-[ /jonas Derek Hohls wrote: Jonas Can you quote the section of the docs you refer to? *My* perception is that the SLQ Transformer is the preferred way to extract

Re: Storing a xml document uploaded through xmlHttpRequest to a database

2005-06-08 Thread Derek Hohls
Jonas Can you quote the section of the docs you refer to? *My* perception is that the SLQ Transformer is the preferred way to extract data from a databse; ESQL is part of XSP, which the project has debated deprecating and decided against: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=1100339

Re: Storing a xml document uploaded through xmlHttpRequest to a database

2005-06-07 Thread Jonas Höglund
Hmmm... It's stated, somewhere in the docs, that the modular database action (an action) is the prefered way of inserting/updating/deleting data in to a database and esql was prefered for reading from a database. I could use esql using a dynamic xsp page, but I would prefer to store the xml d

Re: Storing a xml document uploaded through xmlHttpRequest to a database

2005-06-07 Thread Geert Josten
Hi, SQLTransformer is part of the databases block I believe. But if you prefer esql (which is part of XSP I believe), than stream the XML, wrap it in ESQL statements with some XSL sheet and than get that executed as an (dynamically generated) XSP... Anyhow, I don't think you will be able to l

Re: Storing a xml document uploaded through xmlHttpRequest to a database

2005-06-07 Thread Jonas Höglund
I thought the SQL Transformer was deprected, and the modular database action was the preferd way of inserting/updating data in a database. I would prefer sticking to the modular database action over using yet another way of calling the database. /jonas Geert Josten wrote: I believe there is

Re: Storing a xml document uploaded through xmlHttpRequest to a database

2005-06-07 Thread Geert Josten
I believe there is an SQL Transformer around somewhere. Is it possible to wrap the XML data into an xml sql statement (of the transformers namespace) and putting that through the transformer? HTH, Geert Jonas Höglund wrote: Hi! Can anyone help me to explain how to store/save a xml document (t

Storing a xml document uploaded through xmlHttpRequest to a database

2005-06-07 Thread Jonas Höglund
Hi! Can anyone help me to explain how to store/save a xml document (the request body) send to the server as a xmlHttpRequest to a field in a database. I've been able to process the xmlHttpRequest request through the stream generator and saving data from nodes in the xml document through xslt