Coder Social home page Coder Social logo

wolfgangmm / tei-simple-pm Goto Github PK

View Code? Open in Web Editor NEW
20.0 8.0 9.0 19.87 MB

An implementation of the TEI Simple ODD extensions for processing models in XQuery.

Home Page: http://showcases.exist-db.org/exist/apps/tei-simple/index.html

XQuery 82.26% HTML 8.31% JavaScript 4.72% CSS 4.71%

tei-simple-pm's Introduction

TEI Processing Model Toolbox

Note: The TEI Processing Model Toolbox has been superseded by TEI Publisher. See http://teipublisher.com for more information.

The TEI Processing Model (PM) extends the TEI ODD specification format with a processing model for documents. That way intended processing for all elements can be expressed within the TEI vocubulary itself. It aims at the XML-savvy editor who is familiar with TEI but is not necessarily a developer.

The TEI Processing Model Toolbox for eXist facilitates the integration of the TEI processing model into existing applications, supporting a range of different output media without requiring advanced coding skills. Customising the appearance of the text is all done in TEI by mapping each TEI element to a limited set of well-defined behaviour functions, e.g. “paragraph”, “heading”, “note”, “alternate”, etc. The TEI Processing Model includes a standard mapping, which can be extended by overwriting selected elements. Rendition styles are transparently translated into the different output media types like HTML, XSL-FO, LaTeX, or ePUB. Compared to traditional approaches with XSLT or XQuery, TEI Simple may thus easily save a few thousand lines of code for media specific stylesheets.

Editing an ODD

Demo

A demo of the app is available on

http://showcases.exist-db.org/exist/apps/tei-simple/index.html

The library modules are also used by the Early English Books demo which includes more than 30,000 documents:

http://showcases.exist-db.org/exist/apps/eebo/

Installation

A prebuilt version of the app can be installed from eXist's central app repository. On your eXist installation, open the package manager in the dashboard and select "TEI Simple Processing Model" for installation. Dependencies should be installed automatically.

Important: Due to a bug in the 2.2 release, the tei-simple module requires eXistdb 3.0RC1 or later.

Documentation

For an overview of the app and library, please refer to my presentation. There's also some preliminary documentation available.

Building

For PDF output, you need to enable the Apache FOP extension as follows:

  • in extensions/build.properties, set "include.module.xslfo = true"
  • rebuild eXist to install the Apache FOP libraries
  • edit conf.xml and uncomment the fo module:
<module uri="http://exist-db.org/xquery/xslfo" class="org.exist.xquery.modules.xslfo.XSLFOModule">
    <parameter name="processorAdapter" value="org.exist.xquery.modules.xslfo.ApacheFopProcessorAdapter"/>
</module>

tei-simple-pm ships as a .xar package which can be installed into any eXist instance using the dashboard.

To build tei-simple-pm, clone the repository and call "ant" in the root directory. This will create a .xar inside the build directory.

License

This software is dual-licensed:

  1. Distributed under a Creative Commons Attribution-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/

  2. http://www.opensource.org/licenses/BSD-2-Clause

All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright holder or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

tei-simple-pm's People

Contributors

joewiz avatar mathias-goebel avatar tuurma avatar wolfgangmm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tei-simple-pm's Issues

TEI Publisher vs TEI Processing Model Toolbox ???

I don't quite get how to get and install the new TEI publisher version:

  • the pre-installed version (from the recent nightly builds) is TEI Processing Model Toolbox v1.1.1
  • the .xar generated with ant from a clone of this repo creates a "tei-pm-1.1.0.xar" file

A part from the icons and the <h1> of the home page, are there differences between TEI Publisher (visible on the show case at and the pre-installed TEI Processing Model toolbox v1.1.1 ?
If yes, how to install TEI Publisher?

Thanks !
Emmanuelle

Error generating LaTeX PDF

When loading baldwin's LaTeX, I get this error:

(URL: http://localhost:8080/exist/apps/tei-simple/modules/latex.xql?odd=teisimple.odd&doc=/test/baldwin.xml)

<exception>
  <path>/db/apps/tei-simple/modules/latex.xql</path>
  <message>
exerr:ERROR /Users/joe/workspace/exist/webapp/teisimple-temp/baldwin-7b3f2378-20150525-013417.pdf (No such file or directory) [at line 84, column 37]
</message>
</exception>

The error log from console is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<execution exitCode="1">
    <commandline>/usr/texbin/pdflatex -interaction=nonstopmode baldwin-7b3f2378-20150525-013417 </commandline>
    <stdout>
        <line>This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded
            format=pdflatex)</line>
        <line> restricted \write18 enabled.</line>
        <line>entering extended mode</line>
        <line>(./baldwin-7b3f2378-20150525-013417.tex</line>
        <line>LaTeX2e &lt;2014/05/01&gt;</line>
        <line>Babel &lt;3.9k&gt; and hyphenation patterns for 78 languages loaded.</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/base/book.cls</line>
        <line>Document Class: book 2007/10/19 v1.4h Standard LaTeX document class</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/base/bk11.clo))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/babel/babel.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/babel-english/english.ldf</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/babel/babel.def)))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/colortbl/colortbl.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/tools/array.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/color.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/color.cfg)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/pdftex-def/pdftex.def</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/infwarerr.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/xcolor/xcolor.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/color.cfg))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/ulem/ulem.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/marginfix/marginfix.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/geometry/geometry.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/keyval.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifpdf.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifvtex.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/ifxetex/ifxetex.sty))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphicx.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphics.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/trig.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/graphics.cfg)))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hyperref.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/auxhook.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/kvoptions.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/pd1enc.def)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/hyperref.cfg)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/url/url.sty))</line>
        <line/>
        <line>Package hyperref Message: Driver (autodetected): hpdftex.</line>
        <line/>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hpdftex.def</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/tools/longtable.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/morefloats/morefloats.sty)</line>
        <line>No file baldwin-7b3f2378-20150525-013417.aux.</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/context/base/supp-pdf.mkii</line>
        <line>[Loading MPS to PDF converter (version 2006.09.02).]</line>
        <line>)</line>
        <line>*geometry* driver: auto-detecting</line>
        <line>*geometry* detected driver: pdftex</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/grfext.sty)</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/nameref.sty</line>
        <line>(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))</line>
        <line>[1{/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]</line>
        <line>! Missing number, treated as zero.</line>
        <line>&lt;to be read again&gt; </line>
        <line> F</line>
        <line>l.31 Simion Suggs, JR. \\ [Frontispiece Image]</line>
        <line> </line>
        <line>! Illegal unit of measure (pt inserted).</line>
        <line>&lt;to be read again&gt; </line>
        <line> F</line>
        <line>l.31 Simion Suggs, JR. \\ [Frontispiece Image]</line>
        <line> </line>
        <line/>
        <line>Underfull \hbox (badness 10000) in paragraph at lines 31--32</line>
        <line/>
        <line/>
        <line>! LaTeX Error: There's no line here to end.</line>
        <line/>
        <line>See the LaTeX manual or LaTeX Companion for explanation.</line>
        <line>Type H &lt;return&gt; for immediate help.</line>
        <line> ... </line>
        <line> </line>
        <line>l.57 \\M</line>
        <line> Y FRIENDS</line>
        <line/>
        <line>! LaTeX Error: There's no line here to end.</line>
        <line/>
        <line>See the LaTeX manual or LaTeX Companion for explanation.</line>
        <line>Type H &lt;return&gt; for immediate help.</line>
        <line> ... </line>
        <line> </line>
        <line>l.59 \\I</line>
        <line> N THE VALLEY OF THE SHENANDOAH,</line>
        <line/>
        <line>! LaTeX Error: There's no line here to end.</line>
        <line/>
        <line>See the LaTeX manual or LaTeX Companion for explanation.</line>
        <line>Type H &lt;return&gt; for immediate help.</line>
        <line> ... </line>
        <line> </line>
        <line>l.61 \\T</line>
        <line> his Volume</line>
        <line/>
        <line>! LaTeX Error: There's no line here to end.</line>
        <line/>
        <line>See the LaTeX manual or LaTeX Companion for explanation.</line>
        <line>Type H &lt;return&gt; for immediate help.</line>
        <line> ... </line>
        <line> </line>
        <line>l.63 \\I</line>
        <line> S RESPECTFULLY DEDICATED.</line>
        <line/>
        <line>Package Fancyhdr Warning: \headheight is too small (12.0pt): </line>
        <line> Make it at least 13.59999pt.</line>
        <line> We now make it that large for the rest of the document.</line>
        <line> This may cause the page layout to be inconsistent, however.</line>
        <line/>
        <line>[2] [3] [4] (/usr/local/texlive/2014/texmf-dist/tex/latex/base/omscmr.fd)</line>
        <line>[5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]</line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Argument of \@firstoftwo has an extra }.</line>
        <line>&lt;inserted text&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>Runaway argument?</line>
        <line>! Paragraph ended before \@firstoftwo was complete.</line>
        <line>&lt;to be read again&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@icentercr doesn't match its definition.</line>
        <line>\@ifnextchar ...eserved@d =#1\def \reserved@a {#2}</line>
        <line> \def \reserved@b {#3}\futu...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Argument of \@firstoftwo has an extra }.</line>
        <line>&lt;inserted text&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>Runaway argument?</line>
        <line>! Paragraph ended before \@firstoftwo was complete.</line>
        <line>&lt;to be read again&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@icentercr doesn't match its definition.</line>
        <line>\@ifnextchar ...eserved@d =#1\def \reserved@a {#2}</line>
        <line> \def \reserved@b {#3}\futu...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Argument of \@firstoftwo has an extra }.</line>
        <line>&lt;inserted text&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>Runaway argument?</line>
        <line>! Paragraph ended before \@firstoftwo was complete.</line>
        <line>&lt;to be read again&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@icentercr doesn't match its definition.</line>
        <line>\@ifnextchar ...eserved@d =#1\def \reserved@a {#2}</line>
        <line> \def \reserved@b {#3}\futu...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Argument of \@firstoftwo has an extra }.</line>
        <line>&lt;inserted text&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>Runaway argument?</line>
        <line>! Paragraph ended before \@firstoftwo was complete.</line>
        <line>&lt;to be read again&gt; </line>
        <line> \par </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Undefined control sequence.</line>
        <line>\reserved@a -&gt;\@nil </line>
        <line> </line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@icentercr doesn't match its definition.</line>
        <line>\@ifnextchar ...eserved@d =#1\def \reserved@a {#2}</line>
        <line> \def \reserved@b {#3}\futu...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>! Use of \@xifnch doesn't match its definition.</line>
        <line>\@ifnch ...ptoken \let \reserved@c \@xifnch \else </line>
        <line> \ifx \@let@token \reserved...</line>
        <line>l.179 ...\textit{vs.}\\ SWINK, \textit{Slander.}}}</line>
        <line> </line>
        <line>)</line>
        <line>! Incomplete \iffalse; all text was ignored after line 179.</line>
        <line>&lt;inserted text&gt; </line>
        <line> \fi </line>
        <line>&lt;*&gt; baldwin-7b3f2378-20150525-013417</line>
        <line> </line>
        <line>! Emergency stop.</line>
        <line>&lt;*&gt; baldwin-7b3f2378-20150525-013417</line>
        <line> </line>
        <line>! ==&gt; Fatal error occurred, no output PDF file produced!</line>
        <line>Transcript written on baldwin-7b3f2378-20150525-013417.log.</line>
    </stdout>
</execution>

Error generating any sort of Output

I hope anyone can help me, I am fairly new to the (exist-db, tei, tei-publisher) - world, so I cannot rule out that I have not done anything wrong.
SO for ensuring I did everything right, here follows a step-by-step of my doings:

  1. reading the Documentation ( ;-) )

  2. Uploading my ODD-customization I made a few days back with roma, I uploaded the .rng - file, was that the correct one to choose?

  3. I created a basic xml in OxygenXML Editor, personalized it with the same .rng (I think I used the copy from my SSD not the one from the app/resources/odd) (probably a mistake here?) and uploaded it to the database.

  4. I logged in as "admin" and uploaded a sample xml-file for my database (containing a -element with one picture in it and some basic "I have to try this out"-text
    grafik
    (as far as I can tell, the TEI-file is okay, basic, but okay nontheless)
    when clicking on pdf I choose both options giving me the following error messages

FO:
grafik
LaTex:
grafik

To complicate the issue even further:

Epub output also produces a similar error:
grafik

I hope someone can clear this up!

Are there any tutorials/how-tos I missed?
I am utterly confused, although I spent the past 3 weeks reading stuff an exist-db, tei, xslt, xpatth and xquery ...

best wishes, thanks in advance and I'm looking forward to hearing from anyone!

broken links in eXide outline for generated xquery modules

Module import statements in the generated XQuery files like generated/documentation-web.xql look like this:

import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions" at "xmldb:exist://embedded-eXist-server/db/apps/tei-simple/content/html-functions.xql";

Here, the path embedded-eXist-server causes eXide's outline pane to generate this error when clicking on links to a function like html:link:

Failed to load document embedded-eXist-server/db/apps/tei-simple/content/html-functions.xql: 404 Not Found

I tried changing changing model.xql to import config.xqm so it could make use of $config:app-root instead of system:get-module-load-path, but even after making this change and regenerating, I still saw the links to embedded-eXist-server.

control CSS from rendition information

probably we should restrict the scope of the embedded CSS from the ODD to the rendering of the text only by adding an ID in front of all instructions during compile process so no embedded CSS can interfere with designers CSS.

Error when generating FO PDF

From index.html, clicking on PDF button for baldwin leads to:

http://localhost:8080/exist/apps/tei-simple/modules/fo.xql?odd=teisimple.odd&doc=/test/baldwin.xml

which yields this error:

<exception>
  <path>/db/apps/tei-simple/modules/fo.xql</path>
  <message>
exerr:ERROR For "fo:block", "fo:marker" must be declared before "initial-property-set? (#PCDATA|%inline;|%block;)"! (See fo:block, "HIGGINBOTHAM, vs., SWINK, , Slan...") [at line 75, column 29]
  </message>
</exception>

App generator stalls

Using the latest master branch (and eXist develop), the app stalls after submitting the form to generate an app:

screen shot 2016-05-09 at 1 21 36 pm

Monex doesn't show any running queries. The Chrome Developer extension shows that the call to generator.xql:

http://localhost:8080/exist/apps/tei-simple/modules/generator.xql?odd=teisimple.odd&uri=http%3A%2F%2Fhistory.state.gov%2Fns%2Fxquery%2Fapps%2Fguides&abbrev=guides&data-collection=&title=Guides&default-view=div&owner=guides-user&password=guides

... returns with an Error 500:

HTTP ERROR 500

Problem accessing /exist/apps/tei-simple/modules/generator.xql. Reason:

    Server Error
Caused by:

javax.servlet.ServletException: An error occurred: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:263)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229)
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
    at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50)
    at org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:548)
    at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:352)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
    at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.console.xquery.Log.eval(Log.java:171)
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70)
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)
    at org.exist.xquery.Atomize.eval(Atomize.java:67)
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)
    at org.exist.xquery.functions.fn.FunDoc.eval(FunDoc.java:94)
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41)
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.Lookup.eval(Lookup.java:57)
    at org.exist.xquery.ForExpr.eval(ForExpr.java:126)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239)
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239)
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.XQuery.execute(XQuery.java:253)
    at org.exist.xquery.XQuery.execute(XQuery.java:185)
    at org.exist.xquery.XQuery.execute(XQuery.java:180)
    at org.exist.repo.Deployment.runQuery(Deployment.java:657)
    at org.exist.repo.Deployment.deploy(Deployment.java:417)
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:271)
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:158)
    at org.exist.xquery.modules.expathrepo.Deploy.installAndDeployFromDb(Deploy.java:213)
    at org.exist.xquery.modules.expathrepo.Deploy.eval(Deploy.java:169)
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70)
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.XQuery.execute(XQuery.java:253)
    at org.exist.xquery.XQuery.execute(XQuery.java:185)
    at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1506)
    at org.exist.http.RESTServer.doGet(RESTServer.java:507)
    at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:230)
    ... 45 more
Caused by:

java.lang.NoSuchMethodError: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.console.xquery.Log.eval(Log.java:171)
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70)
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)
    at org.exist.xquery.Atomize.eval(Atomize.java:67)
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)
    at org.exist.xquery.functions.fn.FunDoc.eval(FunDoc.java:94)
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41)
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.Lookup.eval(Lookup.java:57)
    at org.exist.xquery.ForExpr.eval(ForExpr.java:126)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239)
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239)
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.XQuery.execute(XQuery.java:253)
    at org.exist.xquery.XQuery.execute(XQuery.java:185)
    at org.exist.xquery.XQuery.execute(XQuery.java:180)
    at org.exist.repo.Deployment.runQuery(Deployment.java:657)
    at org.exist.repo.Deployment.deploy(Deployment.java:417)
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:271)
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:158)
    at org.exist.xquery.modules.expathrepo.Deploy.installAndDeployFromDb(Deploy.java:213)
    at org.exist.xquery.modules.expathrepo.Deploy.eval(Deploy.java:169)
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70)
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267)
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
    at org.exist.xquery.XQuery.execute(XQuery.java:253)
    at org.exist.xquery.XQuery.execute(XQuery.java:185)
    at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1506)
    at org.exist.http.RESTServer.doGet(RESTServer.java:507)
    at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:230)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229)
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
    at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50)
    at org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:548)
    at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:352)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
    at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Thread.java:745)
Powered by Jetty://

exist.log reports:

2016-05-09 13:53:03,194 [eXistThread-80] WARN  (ServletHandler.java [doHandle]:538) -  
javax.servlet.ServletException: An error occurred while processing request to /exist/apps/tei-simple/modules/generator.xql: An error occurred: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:381) ~[exist-optional.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) ~[servlet-api-3.0.jar:?]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171) ~[betterform-exist-5.1-SNAPSHOT-20151014.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) [jetty-security-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Server.handle(Server.java:370) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [jetty-http-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [jetty-http-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696) [jetty-io-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53) [jetty-io-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.17.v20150415.jar:8.1.17.v20150415]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: javax.servlet.ServletException: An error occurred: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:263) ~[exist-optional.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) ~[servlet-api-3.0.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) ~[servlet-api-3.0.jar:?]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) ~[jetty-security-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50) ~[exist-optional.jar:?]
    at org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:548) ~[exist-optional.jar:?]
    at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:352) ~[exist-optional.jar:?]
    ... 28 more
Caused by: java.lang.NoSuchMethodError: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.console.xquery.Log.eval(Log.java:171) ~[exist-monex-0.9.3.jar:?]
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70) ~[exist.jar:?]
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74) ~[exist.jar:?]
    at org.exist.xquery.Atomize.eval(Atomize.java:67) ~[exist.jar:?]
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74) ~[exist.jar:?]
    at org.exist.xquery.functions.fn.FunDoc.eval(FunDoc.java:94) ~[exist.jar:?]
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) ~[exist.jar:?]
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74) ~[exist.jar:?]
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.Lookup.eval(Lookup.java:57) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.eval(ForExpr.java:126) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:253) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:185) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:180) ~[exist.jar:?]
    at org.exist.repo.Deployment.runQuery(Deployment.java:657) ~[exist.jar:?]
    at org.exist.repo.Deployment.deploy(Deployment.java:417) ~[exist.jar:?]
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:271) ~[exist.jar:?]
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:158) ~[exist.jar:?]
    at org.exist.xquery.modules.expathrepo.Deploy.installAndDeployFromDb(Deploy.java:213) ~[exist-modules.jar:?]
    at org.exist.xquery.modules.expathrepo.Deploy.eval(Deploy.java:169) ~[exist-modules.jar:?]
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70) ~[exist.jar:?]
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:253) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:185) ~[exist.jar:?]
    at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1506) ~[exist-optional.jar:?]
    at org.exist.http.RESTServer.doGet(RESTServer.java:507) ~[exist-optional.jar:?]
    at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:230) ~[exist-optional.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) ~[servlet-api-3.0.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) ~[servlet-api-3.0.jar:?]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) ~[jetty-security-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50) ~[exist-optional.jar:?]
    at org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:548) ~[exist-optional.jar:?]
    at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:352) ~[exist-optional.jar:?]
    ... 28 more
2016-05-09 13:53:03,195 [eXistThread-80] WARN  (ServletHandler.java [doHandle]:563) - /exist/apps/tei-simple/modules/generator.xql 
javax.servlet.ServletException: An error occurred: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:263) ~[exist-optional.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) ~[servlet-api-3.0.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) ~[servlet-api-3.0.jar:?]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) ~[jetty-security-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103) ~[jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50) ~[exist-optional.jar:?]
    at org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:548) ~[exist-optional.jar:?]
    at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:352) ~[exist-optional.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) ~[servlet-api-3.0.jar:?]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171) ~[betterform-exist-5.1-SNAPSHOT-20151014.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476) ~[jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) [jetty-security-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.Server.handle(Server.java:370) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [jetty-http-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [jetty-http-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696) [jetty-io-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53) [jetty-io-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.17.v20150415.jar:8.1.17.v20150415]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.17.v20150415.jar:8.1.17.v20150415]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NoSuchMethodError: org.exist.xquery.Expression.getSource()Lorg/exist/security/xacml/XACMLSource;
    at org.exist.console.xquery.Log.eval(Log.java:171) ~[exist-monex-0.9.3.jar:?]
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70) ~[exist.jar:?]
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74) ~[exist.jar:?]
    at org.exist.xquery.Atomize.eval(Atomize.java:67) ~[exist.jar:?]
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74) ~[exist.jar:?]
    at org.exist.xquery.functions.fn.FunDoc.eval(FunDoc.java:94) ~[exist.jar:?]
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) ~[exist.jar:?]
    at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74) ~[exist.jar:?]
    at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:205) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.Lookup.eval(Lookup.java:57) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.eval(ForExpr.java:126) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.processItem(ForExpr.java:239) ~[exist.jar:?]
    at org.exist.xquery.ForExpr.eval(ForExpr.java:179) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:253) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:185) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:180) ~[exist.jar:?]
    at org.exist.repo.Deployment.runQuery(Deployment.java:657) ~[exist.jar:?]
    at org.exist.repo.Deployment.deploy(Deployment.java:417) ~[exist.jar:?]
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:271) ~[exist.jar:?]
    at org.exist.repo.Deployment.installAndDeploy(Deployment.java:158) ~[exist.jar:?]
    at org.exist.xquery.modules.expathrepo.Deploy.installAndDeployFromDb(Deploy.java:213) ~[exist-modules.jar:?]
    at org.exist.xquery.modules.expathrepo.Deploy.eval(Deploy.java:169) ~[exist-modules.jar:?]
    at org.exist.xquery.BasicFunction.eval(BasicFunction.java:70) ~[exist.jar:?]
    at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:84) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302) ~[exist.jar:?]
    at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:99) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) ~[exist.jar:?]
    at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]
    at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:253) ~[exist.jar:?]
    at org.exist.xquery.XQuery.execute(XQuery.java:185) ~[exist.jar:?]
    at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1506) ~[exist-optional.jar:?]
    at org.exist.http.RESTServer.doGet(RESTServer.java:507) ~[exist-optional.jar:?]
    at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:230) ~[exist-optional.jar:?]
    ... 45 more

Enhance TOC navigation transition

Currently selecting the TOC navigation triggers a "backwards" transition regardless of whether the selection is before or after the present one. Perhaps this method of the node-ids could be compared to present the appropriate direction. I don't know enough javascript to suggest the best way, but this could perhaps help. http://stackoverflow.com/questions/6832596/how-to-compare-software-version-number-using-js-only-number.

(A minor suggestion for some future version...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.