An extensible framework for digital Editions for the eXist XML database.
This framework still lacks a good name. If you have an idea, please let me know!
Release 25Q3 dropped support for more unsued functions:
wdb:getFilePath ( $id as xs:string ): use the map fromwdbFiles:getFullPathinstead- the default layout of all
resourcescollections has changed to group files by type. This also affects the main project specific overrides, i.e.project.jsandproject.css. An XQuery is provided to move all files to their appropriate new locations (TODO: add file name here). This also affectsedoc/data/resourcesandedoc/resourcesso you might have to change imports manually if you make use of any file in these collections.
Changes in standard behaviour
- sub-projects will now make use of process inheritance; i.e., they only define empty
processeswith nocommand. Acommandis then picked by traversing up through parentwdbmeta.xml(i.e., one that is pointed to by astruct/import; worst case: data). This way, you can still have differentcommanddefined for sub-projects (and their children) but do not need to change the path for every sub-project. - as part of this, no XSLTs are being copied to
{$subproject}/resourcesas inheritance is now the standard. This way, surplus XSLTs do not have to be deleted or kept up to date. As said above, it is still possible to create acommandfor this sub-project tree and create specific XSLTs (usually by including the main XSLTs) - standard XSLTs for a new project are now bare: they only include
/edoc/data/resources/xslt/{$currentFileName}, andtei-common.xsl(unless it’s common itself).
Release 24Q4 dropped another set of functions that were unused:
wdb:getEdFromFileID( $id as xs:string ):(wdbFiles:getFullPath($id))?projectPathreturns the base path towdbmeta.xmlwdb:getMetaElementFromEd ( $ed as xs:string ): usedoc( (doc("/db/apps/edoc/index/project-index.xml")/id($ed))/@path || '/wdbmeta.xml' )/id($ed)[self::meta:projectMD]insteadwdb:getMetaFile( $pathToEd ):(wdbFiles:getFullPath($ed))?projectPathreturns the base path towdbmeta.xmlwdb:getProjectPathFromId ( $ed ): use(wdbFiles:getFullPath($ed))?projectPathinstead
Release 24Q2 dropped functions wdb:getEdPath( $ed as xs:string , $absolute as xs:boolean() ),
wdb:getEdPath( $ed as xs:string ), and wdb:findProjectXQM( $project ). These queries can be replaced by
(wdbFiles:getFullPath($id)) which returns a map with projectPath (the path to the project, i.e. the collection where
wdbmeta.xml¹ is stored), collectionPath (for the subcollection where a file is actually located), mainProject for
the path to the project containing project.xqm, and fileName.
- (24Q4): this corrects a typo as previous versions incorrectly read
project.xqm.
Release 24Q1 dropped support for METS-based projects. As METS files can have a number of very different ways of encoding information, especially when it comes to behaviours, native support is hard to achieve. At the same time, most installations use wdb+’s native wdbmeta system as this is what the admin functions work with. If you require METS support, please open an issue and provide an example of your METS files. We will then try to create import and export functions.
Release 24Q1 introduced changes to the transformation: previously, XIncludes were not expanded before the XSLT was
applied to a file. This has now been dropped meaning that XIncludes will always be expanded. This is most likely the
expected behaviour. If you want to ignore XInclude, you can add this as a global setting in eXist: in
${eXist-dir}/etc/conf.xml set serializer/@enable-xinclude to no.
You need a working instance of eXist (4.0 or later). It is recommended that you use the default software selection during installation. The default memory settings usually work very well but you can, of course, always give eXist a little more RAM.
- Clone this repo including its submodules (xstring, wdbmeta)
cd edoc- run
ant - install the
.xarfile created inedoc/build/using eXist's dashboard or (https://github.com/eXist-db/xst)[XST]
The app will be installed into /db/apps/edoc.
- clone this repo including its submodules
- put folder
edocanywhere you want in your eXist; the default would be/db/apps/edoc; you can also rename it to your needs (in this case, you have to adjust the paths in the next steps!). - import the index configuration files – i.e. the contents of the
configdirectory – into/db/system/config/db/apps(see the wiki if you change the destination) - run
edoc/post-install.xqlto set execution rights and apply the index configuration (if you change the destination, adjust your paths).
Set the name for the instance and other settings in edoc/config.xml or using the form under edoc/admin/admin.html.
While many different ways of putting data into the application are possible, the standard way is to have one collection under data for each project.
It is possible to create an initial setup using admin/admin.html. After creating a project, you can immediately start
uploading files using the upload form. wdb+ will take care of creating meta data entries.
The following describes a manual installation and assumes that you work with a standard setup, i.e. have installed the app
into /db/apps/edoc and want to put your projects into /db/apps/edoc/data/yourproject.
- create
wdbmeta.xmlin/db/apps/edoc/data/yourproject, either by copying, pasting and editing the example below or by usingadmin/admin.htmlfor the basic settings (it also creates the collection) and adding the other settings.You have to set at least one<projectMD xmlns="https://github.com/dariok/wdbplus/wdbmeta" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://github.com/dariok/wdbplus/wdbmeta https://raw.githubusercontent.com/dariok/wdbmeta/master/wdbmeta.xsd" xml:id="yourProjectID"> <projectID>yourProjectID</projectID> <titleData> <title>Project Title</title> </titleData> <files> <file path="pathTo.xml" xml:id="xml-id" /> </files> <processes> <process target="html"> <command type="xsl">/db/apps/edoc/resources/xsl/tei-transcript.xsl</command> </process> </processes> <struct label="1722" order="1722"> <view file="xml-id" label="Title of File" /> </struct> </projectMD>
process; the example above points to a standard XSLT provided by wdb+. - add project's XML/XSLT etc. files to your projects, e.g. into a subcollection
/db/apps/edoc/data/yourproject/texts - add a
<file>entry towdbmeta.xlmfor each file to be displayed; you MUST give it anxml:idwhich SHOULD be the same as that file’s/*/@xml:id - The file is now available to view under
http://yourserver:8080/exist/apps/edoc/view.html?id=xml-id
Global configuration options, i.e. those that concern options for the whole instance, have to be set in config.xml (e.g. the instance's name).
Settings for a project are set in the project's wdbmeta.xml.
See the Wiki for details!
- HAB Wolfenbüttel
- Editionsprojekt Karlstadt
- ACDH Wien
- Wien[n]erisches Diarium Digital
- Repertotium frühneuzeitlicher Rechtsquellen
- Protokolle der Sitzungen der Gesamtakadmie
- Akademie der Wissenschaften, Heidelberg
- Theologenbriefwechsel
- ULB Darmstadt
- TUEditions
- WDM
If you use wdbplus for your editions, please drop me a message so I can add you to this list.
Development of wdb+ is chiefly done in projects funded by DFG and the German BMBF. Additionally, we would like to say thank you to BrowserStack for giving us sponsored access!