BaseX 7.7: The Happy-Birthday-Leo Edition
Hi everyone,
we are excited to give you Version 7.7 of BaseX -- the Happy-Birthday-Leo Edition -- which provides a bunch of new and improved features:
XQUERY - Support for XQuery 3.0 has been finalized http://docs.basex.org/wiki/XQuery_3.0 - the Unit Module allows standardized testing of XQuery applications http://docs.basex.org/wiki/Unit_Module - the Streaming Module speeds up operations on large files http://docs.basex.org/wiki/Streaming_Module - the Inspection Module provides reflection and documentation features http://docs.basex.org/wiki/Inspection_Module - we have added support for XQuery collations http://docs.basex.org/wiki/Full-Text#Collations - we have extended the Database, Archive, File and other Modules http://docs.basex.org/wiki/Module_Library
WEB/HTTP SERVICES: - WebDAV has been enriched with locking features (sponsored feature!) http://docs.basex.org/wiki/WebDAV#Locking - RESTXQ has been improved and extended: http://docs.basex.org/wiki/RESTXQ
CORE - improved database locking, including the use of custom lock strings http://docs.basex.org/wiki/Transaction_Management - database names have got more flexible http://docs.basex.org/wiki/Commands#Valid_Names - we have new options for simplifying the creation of large databases http://docs.basex.org/wiki/Options
BaseX is one of the leading open source XML database and XQuery 3.0 processors, including full support for the W3C Update and Full Text extensions. An interactive GUI frontend gives you great insight into your XML documents, and the client-/server-architecture and web services make it a great framework for building powerful web applications. Please find more information at: http://basex.org
Have fun with our new release! Looking forward to your feedback,
Christian BaseX Team, 2013
Christian,
I am testing basex 7.7
I have xquery script that definition at top of file:
declare option output:omit-xml-declaration "no";This script is writing xslx file in xml format after preparing it. It is writing with file:write function.
But I have 2 issues compared to basex 7.2
1 - I don't have this as first file of output xml file <?xml version="1.0" encoding="UTF-8"?>
2 - Every row I create, I have empty name space declaration:
<Row xmlns="">Can you help on this?
Erol Akarsu
On Wed, Aug 7, 2013 at 9:03 AM, Christian Grün <christian.gruen at gmail.com>wrote:
Quoted text · Christian Grün · 53 lines
> Hi everyone, > > we are excited to give you Version 7.7 of BaseX -- the Happy-Birthday-Leo > Edition -- which provides a bunch of new and improved features: > > XQUERY > - Support for XQuery 3.0 has been finalized > http://docs.basex.org/wiki/XQuery_3.0 > - the Unit Module allows standardized testing of XQuery applications > http://docs.basex.org/wiki/Unit_Module > - the Streaming Module speeds up operations on large files > http://docs.basex.org/wiki/Streaming_Module > - the Inspection Module provides reflection and documentation features > http://docs.basex.org/wiki/Inspection_Module > - we have added support for XQuery collations > http://docs.basex.org/wiki/Full-Text#Collations > - we have extended the Database, Archive, File and other Modules > http://docs.basex.org/wiki/Module_Library > > WEB/HTTP SERVICES: > - WebDAV has been enriched with locking features (sponsored feature!) > http://docs.basex.org/wiki/WebDAV#Locking > - RESTXQ has been improved and extended: > http://docs.basex.org/wiki/RESTXQ > > CORE > - improved database locking, including the use of custom lock strings > http://docs.basex.org/wiki/Transaction_Management > - database names have got more flexible > http://docs.basex.org/wiki/Commands#Valid_Names > - we have new options for simplifying the creation of large databases > http://docs.basex.org/wiki/Options > > BaseX is one of the leading open source XML database and XQuery 3.0 > processors, including full support for the W3C Update and Full Text > extensions. An interactive GUI frontend gives you great insight into your > XML documents, and the client-/server-architecture and web services make it > a great framework for building powerful web applications. Please find more > information at: http://basex.org > > Have fun with our new release! > Looking forward to your feedback, > > Christian > BaseX Team, 2013 > > > _______________________________________________ > BaseX-Announce mailing list > BaseX-Announce at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-announce > >
Hi Erol,
Christian is on a well-deserved vacation, so you are stuck with me :)
If you output to a file using file:write() the declaration will be of no use to you, as it only applies to the result of the query itself. To change the serialization options for file write, you can specifiy an optional third parameter to the function, please take a look at the documentation:
- https://docs.basex.org/wiki/File_Module#file:write
and
- https://docs.basex.org/wiki/Serialization
So in your case it will be something like
file:write("yourfile", <root/>,
<output:serialization-parameters>
<output:omit-xml-declaration value='no'/>
</output:serialization-parameters>
)Regarding your second issue I have no immediate clue. Could you please provide us with a SSCCE?
Cheers, Dirk
Quoted text · Erol Akarsu · 89 lines
On 08/28/2013 05:28 PM, Erol Akarsu wrote: > Christian, > > I am testing basex 7.7 > > I have xquery script that definition at top of file: > > declare option output:omit-xml-declaration "no"; > > This script is writing xslx file in xml format after preparing it. It is > writing with file:write function. > > But I have 2 issues compared to basex 7.2 > > 1 - I don't have this as first file of output xml file > <?xml version="1.0" encoding="UTF-8"?> > > 2 - Every row I create, I have empty name space declaration: > > <Row xmlns=""> > > Can you help on this? > > Erol Akarsu > > > On Wed, Aug 7, 2013 at 9:03 AM, Christian Grün <christian.gruen at gmail.com>wrote: > >> Hi everyone, >> >> we are excited to give you Version 7.7 of BaseX -- the Happy-Birthday-Leo >> Edition -- which provides a bunch of new and improved features: >> >> XQUERY >> - Support for XQuery 3.0 has been finalized >> http://docs.basex.org/wiki/XQuery_3.0 >> - the Unit Module allows standardized testing of XQuery applications >> http://docs.basex.org/wiki/Unit_Module >> - the Streaming Module speeds up operations on large files >> http://docs.basex.org/wiki/Streaming_Module >> - the Inspection Module provides reflection and documentation features >> http://docs.basex.org/wiki/Inspection_Module >> - we have added support for XQuery collations >> http://docs.basex.org/wiki/Full-Text#Collations >> - we have extended the Database, Archive, File and other Modules >> http://docs.basex.org/wiki/Module_Library >> >> WEB/HTTP SERVICES: >> - WebDAV has been enriched with locking features (sponsored feature!) >> http://docs.basex.org/wiki/WebDAV#Locking >> - RESTXQ has been improved and extended: >> http://docs.basex.org/wiki/RESTXQ >> >> CORE >> - improved database locking, including the use of custom lock strings >> http://docs.basex.org/wiki/Transaction_Management >> - database names have got more flexible >> http://docs.basex.org/wiki/Commands#Valid_Names >> - we have new options for simplifying the creation of large databases >> http://docs.basex.org/wiki/Options >> >> BaseX is one of the leading open source XML database and XQuery 3.0 >> processors, including full support for the W3C Update and Full Text >> extensions. An interactive GUI frontend gives you great insight into your >> XML documents, and the client-/server-architecture and web services make it >> a great framework for building powerful web applications. Please find more >> information at: http://basex.org >> >> Have fun with our new release! >> Looking forward to your feedback, >> >> Christian >> BaseX Team, 2013 >> >> >> _______________________________________________ >> BaseX-Announce mailing list >> BaseX-Announce at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-announce >> >> > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.