Changes

Jump to navigation Jump to search
m
- if "content.xml" is too big (for example 250 ko) baseX raises a java StackOverflow error...
 
- when you open your result document Test.ods, Libre Office tells you that the document is corruptes but it is able to repair it and you end up with the right document. Still it's not very elegant.
declare namespace zip = "http://expath.org/ns/zip";
declare namespace office = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
declare namespace dc = "http://purl.org/dc/elements/1.1/";declare namespace text = "urn:oasis:names:tc:opendocument:xmlns:text:1.0"; declare namespace table= "urn:oasis:names:tc:opendocument:xmlns:table:1.0" ;
declare variable $input := "E:/pop.ods";
let $modified:= copy $f:=zip:xml-entry($input, "content.xml")
modify (for $d in $f
for $t in $d//text:p[text()="Year"] return replace value of node $t with "ca roule") return $f
return zip:update-entries($target, $output)
 
== Sorry, I failed to check that discussion page earlier! ==
 
Thanks for reporting this, can you still reproduce the BaseX error in the latest snapshot? :-)
Maybe you could adresse our mailing list [http://www.basex.org/open-source]
--[[User:Michael|Michael]] 10:43, 11 September 2011 (CEST)
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu