// jQuery
$(document).ready(function() {
// code
})
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
(: doesn't support YAML indentation yet - just a start :) | |
declare function local:process-yaml-value($value) { | |
let $single-quote := "^'(.+)'$" | |
let $double-quote := '^"(.+)"$' | |
return | |
if (matches($value, $single-quote) or matches($value, $double-quote)) then | |
let $pattern := "^['""](.+)['""]$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
(: | |
Various Date String Parser | |
- Parses various flavors of date strings, returns as xs:dateTime or xs:date | |
- Key functions: dates:parseDateTime() and dates:parseDate() | |
- adapted to an eXist-compatible module from date-parser.xqy from | |
http://xqzone.marklogic.com/svn/commons/trunk/dates/date-parser.xqy | |
- by Joe Wicentowski |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"> | |
<xsl:param name="date">2013-11-04+11:00</xsl:param> | |
<xsl:param name="time">16:09:24.123+11:00</xsl:param> | |
<xsl:variable name="dateTime" select="concat($date,'T',$time)"/> | |
<xsl:template match="/"> | |
<html> | |
<body> | |
<h1>Formatting Dates with XSLT 2.0</h1> | |
<p>Date: <xsl:value-of select="$date"/> | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX exif: <http://www.w3.org/2003/12/exif/ns#> | |
PREFIX dc: <http://purl.org/dc/elements/1.1/> | |
PREFIX cnt: <http://www.w3.org/2011/content#> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX sc: <http://iiif.io/api/presentation/2#> | |
PREFIX sc1: <http://www.shared-canvas.org/ns/> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX oa: <http://www.w3.org/ns/oa#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/a/16484266/754377 | |
function DataBind(element, data) { | |
this.data = data; | |
this.element = element; | |
element.value = data; | |
element.addEventListener("change", this, false); | |
} | |
DataBind.prototype.handleEvent = function(event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml-stylesheet href="../build/xsltforms.xsl" type="text/xsl"?><?xsltforms-options debug="no"?><?css-conversion no?><?xml-model href="http://www.oxygenxml.com/1999/xhtml/xhtml-xforms.nvdl" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?> | |
<html | |
xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:cwb="http://example.org/cwb/" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xi="http://www.w3.org/2001/XInclude" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?><?xsltforms-options debug="no"?><?css-conversion no?><?xml-model href="http://www.oxygenxml.com/1999/xhtml/xhtml-xforms.nvdl" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?> | |
<html | |
xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:cwb="http://example.org/cwb/" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xi="http://www.w3.org/2001/XInclude" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0" encoding "UTF-8"; | |
(: This file was generated on Sat Feb 13, 2016 20:32 (UTC-05) by REx v5.35 which is Copyright (c) 1979-2015 by Gunther Rademacher <grd@gmx.net> :) | |
(: REx command line: turtle.ebnf -faster -xquery -tree :) | |
(:~ | |
: The parser that was generated for the turtle grammar. | |
:) | |
module namespace p="turtle"; | |
declare default function namespace "http://www.w3.org/2005/xpath-functions"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
let $url := xs:anyURI('https://www.conftool.pro/dhd2016/sessions.php'), | |
$persist:= false(), | |
$request-headers := (), | |
$node as node() := httpclient:get($url, $persist, $request-headers)//httpclient:body/*, | |
$origList := tokenize( | |
string-join( | |
$node//*[contains(@class, 'paper_author')]/ |