From: Vlad A. <int...@po...> - 2004-06-09 15:44:51
|
hi i thanks for your last answers! and have new question.. I have embedded eXist running as servlet under Tomcat and access to it from cocoon 2.1.4 I use java code in xsp page like org.exist.xmldb.LocalXPathQueryService _service = (org.exist.xmldb.LocalXPathQueryService) collection.getService ("XPathQueryService", "1.0" ); _service.setProperty( "pretty", "false" ); _service.setProperty( "encoding", "UTF-8"); _service.setProperty( "highlight-matches", "elements" ); _service.setProperty("create-container-elements", "true"); resourse_set =_service.query(query); res_size = resourse_set.getSize(); if (count > res_size-start){count=res_size-start;} for (long i=start; i < count+start; i++){ <xsp:content><xsp:expr>((org.exist.xmldb.LocalXMLResource)resourse_set.getResource (i)).getContentAsDOM()</xsp:expr> but i getting wrong formated xml like: <row :uid="1173971" :name="8-1 5" :year="90" :sup_name="Sol" /> May be it's depends on some conf parameters? or it's bug in cocoon xsp processing? I will thanks for any suggestions |