Skip to content

Instantly share code, notes, and snippets.

@emchateau
emchateau / modernXML.md
Last active February 7, 2021 03:25
Modern XML usefull resources

title: Modern XML usefull resources

author: @emchateau, @sardinecan

since: 2020-06-24

description: Selected XML resources from the ANR Experts projet for the NA+DAH Getty advanced workshop.

@joewiz
joewiz / strip-diacritics.xq
Last active October 22, 2022 14:42
Strip diacritics, with XQuery
xquery version "3.1";
declare function local:strip-diacritics($string as xs:string) as xs:string {
$string
=> normalize-unicode("NFD")
=> replace("\p{IsCombiningDiacriticalMarks}", "")
};
declare function local:inspect-diacritics($string as xs:string) as element() {
let $normalized := normalize-unicode($string, "NFD")