Skip to content

Instantly share code, notes, and snippets.

<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="tab-counter" extends="chrome://global/content/bindings/tabbox.xml#tab">
<content>
<xul:hbox class="tab-middle box-inherit" xbl:inherits="align,dir,pack,orient,selected" flex="1">
<xul:image class="tab-icon" xbl:inherits="validate,src=image" role="presentation"/>
<xul:label class="tab-text" xbl:inherits="value=label,accesskey,crop,disabled" flex="1" role="presentation"/>
<xul:label class="tab-counter" xbl:inherits="value=_counterLabel" role="presentation"/>
</xul:hbox>
@aurimasv
aurimasv / locales-lt-LT.xml
Created August 11, 2012 01:55 — forked from anonymous/LT_locale
CSL locale for Lithuanian
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="lt-LT">
<!-- Translation by Valdemaras Klumbys -->
<style-options punctuation-in-quote="false"/>
<date form="text" delimiter=" "> <!-- "2011 m. lapkričio 1 d." -->
<date-part name="year" suffix=" m."/>
<date-part name="month"/>
<date-part name="day" form="numeric" suffix=" d."/>
</date>
<date form="numeric" delimiter="-"> <!-- "2011-11-01" -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:z="http://www.zotero.org/namespaces/export#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:bib="http://purl.org/net/biblio#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:prism="http://prismstandard.org/namespaces/1.2/basic/">
<bib:Article rdf:about="http://www.pnas.org/content/67/2/501">
<z:itemType>journalArticle</z:itemType>
@aurimasv
aurimasv / gist:2381784
Created April 14, 2012 02:51
XML with xmlns XPath
ZU.doGet('https://resolve.eidr.org/EIDR/object/10.5240/6F7E-EF59-329B-1F0A-8440-2/?type=Full&followAlias=true',
function(text) {
var d = (new DOMParser()).parseFromString(text, "text/xml");
var nsResolver = function(prefix) {
var ns = {
'n' : 'http://www.eidr.org/schema/1.0',
'md': 'http://www.movielabs.com/md'
};
return ns[prefix] || null;
};