Skip to content

Instantly share code, notes, and snippets.

View tonyahowe's full-sized avatar

Tonya Howe tonyahowe

View GitHub Profile
@tonyahowe
tonyahowe / exist log
Created October 2, 2014 15:22
Exist log
This file has been truncated, but you can view the full file.
2014-10-01 16:49:11,592 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:406) - Authentication try for 'admin'.
2014-10-01 16:49:11,593 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:449) - Authenticated by 'exist' as '[auth] <account name="admin" id="1048574"><group name="dba" id="1048575"><manager name="admin"/></group></account>'.
2014-10-01 16:49:11,594 [eXistThread-191] DEBUG (XQuery.java [execute]:300) - Execution took 64 ms
2014-10-01 16:49:11,594 [eXistThread-191] DEBUG (HTTPUtils.java [addLastModifiedHeader]:63) - mostRecentDocumentTime: 0
2014-10-01 16:49:11,595 [eXistThread-191] DEBUG (HttpRequestWrapper.java [<init>]:142) - Retrieved 0 parameters.
2014-10-01 16:49:11,596 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:406) - Authentication try for 'admin'.
2014-10-01 16:49:11,596 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:449) - Authenticated by 'exist' as '[auth] <account name="admin" id="1048574"><group name="dba" id=
@tonyahowe
tonyahowe / index.html
Created September 11, 2014 00:16
NiC index page
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="main">
<form action="search.html" class="form form-horizontal">
<div class="col-md-3 col-md-push-9">
<div class="well well-sm">
<div class="form-group">
<div class="col-md-12 col-xs-12">
<span class="input-group">
<input name="query" type="search" class="templates:form-control form-control" placeholder="Search String"/>
<span class="input-group-btn">
<button id="f-btn-search" type="submit" class="btn btn-primary">
@tonyahowe
tonyahowe / templates.xql
Created September 10, 2014 22:23
The templates file (?) stored in a different directory.
xquery version "3.0";
(:~
: HTML templating module
:
: @version 2.1
: @author Wolfgang Meier
: @contributor Adam retter
:)
module namespace templates="http://exist-db.org/xquery/templates";
@tonyahowe
tonyahowe / aww.xml
Created September 2, 2014 23:07
NiC Project: Sample XML the app is set up to work with
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="sha-aww">
<teiHeader>
<fileDesc>
<titleStmt>
<title>All's Well That Ends Well</title>
<author>William Shakespeare</author>
<respStmt>
<name>Craig A. Berry, Martin Mueller, and Clifford Wulfman</name>
<resp>editors</resp>
</respStmt>
@tonyahowe
tonyahowe / johnson.xml
Last active August 29, 2015 14:06
NiC Project: Working XML
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="johns-ramb4">
<teiHeader>
<fileDesc>
<titleStmt>
<title type="statusBar">The Rambler No. 4</title>
<author>Samuel Johnson</author>
<respStmt>
<resp>Transcription, correction, editorial commentary, and markup</resp>
<name>Tonya Howe</name>
</respStmt>
@tonyahowe
tonyahowe / tei2html.xql
Last active August 29, 2015 14:06
NiC Project: TEI to HTML transformation
module namespace tei2="http://exist-db.org/xquery/app/tei2html";
declare namespace tei="http://www.tei-c.org/ns/1.0";
declare function tei2:tei2html($nodes as node()*) {
for $node in $nodes
return
typeswitch ($node)
case text() return
$node
@tonyahowe
tonyahowe / app.xql
Last active August 29, 2015 14:06
NiC Project: Main Application
xquery version "3.0";
module namespace app="http://exist-db.org/apps/";
import module namespace templates="http://exist-db.org/xquery/templates";
import module namespace config="http://exist-db.org/apps/NiC/config" at "config.xqm";
import module namespace tei2="http://exist-db.org/xquery/app/tei2html" at "tei2html.xql";
import module namespace kwic="http://exist-db.org/xquery/kwic" at "resource:org/exist/xquery/lib/kwic.xql";
(:~
This file has been truncated, but you can view the full file.
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META HTTP-EQUIV="Generator" CONTENT="OmniPage 18"></META>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"></META>
<LINK type="text/css" href="test9.css" rel="stylesheet"></LINK>
<SCRIPT>
<!--
var reloaded = 0;
if (navigator.userAgent.indexOf("MSIE")==-1)
@tonyahowe
tonyahowe / essay.test.xsl
Created December 21, 2013 22:22
Novel project files--something became screwed up in the transformation, and now nothing is being output and I'm getting a couple error messages in oxygen. Namespaces are a mystery... :(
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xpath-default-namespace="http://www.tei-c.org/ns/1.0" version="2.0">
<xsl:template match="TEI">
<html>
<head>
<title> <xsl:apply-templates select="/TEI/teiHeader/fileDesc/titleStmt"/> </title>
<style type="text/css">
body{
font:15px georgia;
@tonyahowe
tonyahowe / evelina.xml
Created July 14, 2013 12:33
XML to transform with epistolary.xsl
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="epistolary.xsl"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>EVELINA, by Frances Burney</title>
<author/>
</titleStmt>
<editionStmt>