Default Oxygen XML parser prefs include (under the Relax NG section) 'Add default attribute values' set to checked (on). As a result, transforming a document using tei_all will produce output with (no surprise now) default attribute values.
Either turn this option off or don't transform tei_all documents.
Here is an ordered sequence of a events that I think would make a good test case for journeys; Theseus and the Minotaur. It is quite simple, and involves relatively few places and participants. We might wish later to link this up with or include the origin of the minotaur, and the practice of sending it tribute.
These events are drawn from Apollodorus Epitome 1.5-10.
I've written a little bash script that makes updating an eXist db trivial.
The update script relies on a publicly accessible xquery script inside the target database that can return the timestamp of the most recently updated file in the /db collection. Martin wrote one that looks like this. You need to get it in to the db before the rest will work.
The update script itself is written in bash, and uses curl to interact with eXist. You can find the script itself here. It is fairly well documented, and only requires a few settings adjustments to work. It works by checking the local tree for the latest timestamp, compares it to the timestamp it got from the exist db, then creates a list of all local files that need to be pushed to the remote db.
To launch it in Ubuntu I use a Gnome launcher that invokes the script (the 'Exec=' line) like this:
Exec=gnome-terminal --title="Upload files to DB" -e "/complete/path/to/update-script.sh"
which opens a terminal and then runs the script.
Consider the following XML snippet:
<name type="first">Joe</name> <name type="last">Bloggs</name>
A common problem when working on an eXist project is that it gets serialized thusly:
That is, the whitespace gets discarded at some point along the line.
Previously, I've tried making adjustments to the XML directly (p xml:space="preserve") and adding processing instructions to XSL, like xsl:preserve-space. They are, at best, unreliable.
Martin and I worked through the various possible fixes, and discovered three ways to make this work:
1) when configuring your exist:serialize options, add 'indent=yes'
2) if handing something off to XSLT with transform:transform, send it a final directive 'indent=yes'
3) look for the string 'preserve-whitespace-mixed-content' in the main eXist config file ($existHOME/WEB-INF/config.xml) and change the value from no to yes. You'll need to re-index your collection before this will take effect.
We figure option 3 is the most practical way of addressing this as it doesn't add any overhead to your application.
This project will focus on deploying an interactive map of Europe with overlays for Greek and Roman myths, history, people and events. Development URL: http://tomcat-devel.hcmc.uvic.ca:8080/myths/apps/mom
|<< <||Current||> >>|