Skip to content

Instantly share code, notes, and snippets.

View amclark42's full-sized avatar

Ash Clark amclark42

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="xs xsl tei"
version="2.0">
<xsl:output indent="yes" exclude-result-prefixes="#all"/>
@amclark42
amclark42 / countingRobot.xq
Last active April 13, 2017 17:13
Simple XQuery recipe to get the counts of a thing
xquery version "3.0";
(: NAMESPACES :)
declare default element namespace "http://www.wwp.northeastern.edu/ns/textbase";
declare namespace tei="http://www.tei-c.org/ns/1.0";
declare namespace wwp="http://www.wwp.northeastern.edu/ns/textbase";
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";
declare option output:method "text";