How to export a database containing xi:include to multiple files
Wednesday, 27 June 2018 · 2 messages
MR
Marco Randazzo27 Jun 2018 17:34 #
Hi,
I'm posting again the same question I did some time ago, unfortunately unanswered :(
I used baseX GUI (9.0.1) to create a database similar to the following test file: <main xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="folder1/file1.xml" />
<xi:include href="folder2/file1.xml" />
</main>
The Result displayed in the baseX gui is correct:
<main xmlns:xi="http://www.w3.org/2001/XInclude">
<data xml:base="folder1/file1.xml">5555</data>
<data xml:base="folder2/file1.xml">6666</data>
</main>Now, after editing the values, I would like to export the contents of the database to MULTIPLE xml files, recreating the same files and the original folders (I see this information is not lost, it is stored in the value of xml:base)
However, using the export function available in the baseX GUI, I am able to obtain only a SINGLE file containing the Result shown above, where the two files have been merged in a single file. What can I do?
Thank you,
Cheers,
Marco Randazzo
IL
Imsieke, Gerrit, le-tex27 Jun 2018 18:40 #
Hi Marco,
It didn’t go unanswered. Here’s Alex’s reply:
https://mailman.uni-konstanz.de/pipermail/basex-talk/2018-May/013147.html Although his answer doesn’t address the issue of recreating xi:include elements from elements with an xml:base attribute.
Gerrit
Quoted text · Marco Randazzo · 42 lines
On 27.06.2018 17:34, Marco Randazzo wrote: > Hi, > I’m posting again the same question I did some time ago, unfortunately > unanswered L > > I used baseX GUI (9.0.1) to create a database similar to the following > test file: > > <main xmlns:xi="http://www.w3.org/2001/XInclude"> > > <xi:include href="folder1/file1.xml" /> > > <xi:include href="folder2/file1.xml" /> > > </main> > > The Result displayed in the baseX gui is correct: > > <main xmlns:xi="http://www.w3.org/2001/XInclude"> > > <data xml:base="folder1/file1.xml">5555</data> > > <data xml:base="folder2/file1.xml">6666</data> > > </main> > > Now, after editing the values, I would like to export the contents of > the database to MULTIPLE xml files, recreating the same files and the > original folders (I see this information is not lost, it is stored in > the value of xml:base) > > However, using the export function available in the baseX GUI, I am able > to obtain only a SINGLE file containing the Result shown above, where > the two files have been merged in a single file. > > What can I do? > > Thank you, > Cheers, > > Marco Randazzo >
--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit.imsieke at le-tex.de, http://www.le-tex.de
Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930
Geschäftsführer / Managing Directors:
Gerrit Imsieke, Svea Jelonek, Thomas Schmidt
Written for BaseX 9.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery