Archives for: August 2012

22/08/12

Permalink 01:47:17 pm, by Greg, 49 words, 88 views   English (CA)
Categories: Activity log; Mins. worked: 10

Oxygen XSLT transform config

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.

20/08/12

Permalink 01:57:54 pm, by laurenm, 211 words, 86 views   English (CA)
Categories: Activity log; Mins. worked: 1

Example of a journey

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.

  1. event_984, Athens, Theseus et al. sail for Crete to be fed to the Minotaur. Theseus leaves behind his father Aegeus.
  2. event_985, Crete, Theseus and the others have arrived on Crete. Ariadne, the daughter of King Minos, falls in love with Theseus and offers to help him if he marries her
  3. event_1870, Crete, Daedalus the designer of the labyrinth, tells Ariadne how to navigate it (ie, with the help of a ball of string)
  4. event_986, Crete, Theseus kills the Minotaur
  5. event_988, Naxos, Theseus, Ariadne and the other Athenians sail away from Crete and stop here. Theseus forgets/abandons Ariadne and sails off again without her
  6. DIVERGENCE FROM MAIN JOURNEY, event_989, Lemnos, Dionysos, smitten, brings Ariadne to Lemnos
  7. event_990, Athens Theseus returns to Athens, but when sailing into Athens, forgets to put up white sails to signal to Aegeus that he's alive. Aegeus, thinking him dead, kills himself.

These events are drawn from Apollodorus Epitome 1.5-10.

17/08/12

Permalink 04:16:58 pm, by Simon, 98 words, 41 views   English (CA)
Categories: Activity log; Mins. worked: 0

State of the Project

Greg has asked me to sum up where I am leaving the Project. As it stands, the mark up for Apollodorus is complete. We may add later a mystric items list that wil require more mark up but that's limited. When Lauren finishes her splitting of events, Apollodorus will be fully set up. The characters, places, and groups lists I think are pretty complete for Apollodorus, but may need more for other texts. We currently do have some events that need to be merged with those from the catalogue of ships but otherwise work fine for Apollodorus. ~Simon
Permalink 04:13:41 pm, by Simon, 2 words, 40 views   English (CA)
Categories: Activity log; Mins. worked: 0

hours

August 17 10:30 -4

15/08/12

Permalink 04:28:36 pm, by Simon, 2 words, 42 views   English (CA)
Categories: Activity log; Mins. worked: 0

hours

August 15 9-4:30
Permalink 09:32:37 am, by Greg, 180 words, 356 views   English (CA)
Categories: Announcements; Mins. worked: 0

eXist db updater

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.

13/08/12

Permalink 04:38:08 pm, by Simon, 2 words, 49 views   English (CA)
Categories: Activity log; Mins. worked: 0

hours

August 13 10 - 4:30

10/08/12

Permalink 04:44:39 pm, by Simon, 2 words, 48 views   English (CA)
Categories: Activity log; Mins. worked: 0

hours

August 10 10- 4:30
Permalink 01:18:24 pm, by Greg, 174 words, 96 views   English (CA)
Categories: Activity log, Documentation; Mins. worked: 30

Preserving whitespace

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:
JoeBloggs
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.

09/08/12

Permalink 04:00:05 pm, by Simon, 2 words, 44 views   English (CA)
Categories: Activity log; Mins. worked: 0

Hours

August 9 10- 4

08/08/12

Permalink 04:04:21 pm, by Simon, 2 words, 41 views   English (CA)
Categories: Activity log; Mins. worked: 0

Hours

august 8 10 - 4

07/08/12

Permalink 04:29:38 pm, by Simon, 2 words, 40 views   English (CA)
Categories: Activity log; Mins. worked: 0

Hours

August 7 10:30-4:30

03/08/12

Permalink 04:01:44 pm, by Simon, 2 words, 42 views   English (CA)
Categories: Activity log; Mins. worked: 0

hours

July 3 10-4

01/08/12

Permalink 03:26:14 pm, by Simon, 2 words, 48 views   English (CA)
Categories: Activity log; Mins. worked: 0

hours

August 1 10:30-3:30
Permalink 02:49:49 pm, by Simon, 25 words, 37 views   English (CA)
Categories: Activity log; Mins. worked: 0

feature request

I'm adding sources for group memberships. How do I add them for groups out of Homer? The citation system in events is completely different. Simon
Permalink 02:28:42 pm, by Simon, 42 words, 45 views   English (CA)
Categories: Activity log; Mins. worked: 0

feature request

Acastus's character profile is not showing his wife and when you click the space there it lists the alphabet at the top of the page. I checked the xml and can't find the problem. Greg, could you check the code? Thanks Simon

Myths on Maps

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

Reports

Categories

August 2012
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

XML Feeds