Skip to content

Instantly share code, notes, and snippets.

View Bpolitycki's full-sized avatar

Bastian Politycki Bpolitycki

View GitHub Profile
@azinneera
azinneera / uuid-gen.xslt
Last active February 12, 2024 10:17
XSLT generate unique UUID
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:math="http://exslt.org/math" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:uuid="http://www.uuid.org" version="2.0">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<Payment xmlns="http://ws.apache.org/ns/synapse">
<xsl:for-each select="//Order/lunch">
<discount>
<li>
<xsl:attribute name="uid" select="uuid:get-uuid(drinkName)"/>
<xsl:value-of select="drinkName"/>
<span>
@martin-honnen
martin-honnen / count-with-accumulators.xsl
Created November 3, 2017 11:34
XSLT 3 stylesheet using accumulators to count and number nodes in a way compatible with both streaming and non-streaming
<?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:math="http://www.w3.org/2005/xpath-functions/math"
exclude-result-prefixes="xs math"
expand-text="yes"
version="3.0">
<xsl:mode streamable="yes" use-accumulators="#all" on-no-match="shallow-skip"/>
@joewiz
joewiz / saxon-homebrew-macos-xquery.md
Last active April 7, 2022 16:50
Install saxon via homebrew for command line XQuery on macOS
@alojzije
alojzije / connectHTMLelements_SVG.png
Last active May 31, 2025 12:39
Connect two elements / draw a path between two elements with SVG path (using jQuery)
connectHTMLelements_SVG.png