Skip to content
Snippets Groups Projects
Commit 9b6b4409 authored by Max-Ferdinand Zeterberg's avatar Max-Ferdinand Zeterberg
Browse files

Revert "fix(generate-id): replace uuid:randomUUID() with generate-id()"

This reverts commit 543cd6b8.
parent 543cd6b8
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<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"
xmlns:functx="http://www.functx.com" xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="xs" version="2.0"
xmlns:uuid="java:java.util.UUID" exclude-result-prefixes="xs" version="2.0"
xpath-default-namespace="http://sub.uni-goettingen.de/edxml#">
<xsl:function name="functx:substring-before-if-contains" as="xs:string?">
......@@ -96,7 +96,7 @@
</span>
<xsl:if test="$correspondingNotes != ''">
<span>
<xsl:variable name="noteIconId" select="generate-id()"/>
<xsl:variable name="noteIconId" select="uuid:randomUUID()"/>
<label for="{$noteIconId}" class="notes-icon"/>
<input type="checkbox" id="{$noteIconId}"/>
</span>
......@@ -152,7 +152,7 @@
<xsl:template match="note">
<li class="note-item">
<xsl:variable name="noteItemId" select="generate-id()"/>
<xsl:variable name="noteItemId" select="uuid:randomUUID()"/>
<label for="{$noteItemId}">
<xsl:value-of select="@type"/>
</label>
......
<?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"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:uuid="java:java.util.UUID"
xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xs" version="2.0"
xpath-default-namespace="http://sub.uni-goettingen.de/edxml#">
......@@ -49,7 +49,7 @@
<xsl:apply-templates select="*[not(self::notes)]"/>
<div class="notes section-tab">
<xsl:if test="child::notes">
<xsl:variable name="noteIconId" select="generate-id()"/>
<xsl:variable name="noteIconId" select="uuid:randomUUID()"/>
<label for="{$noteIconId}" class="notes-icon"/>
<input type="checkbox" id="{$noteIconId}"/>
</xsl:if>
......@@ -220,7 +220,7 @@
<xsl:for-each select="$targetsUnique">
<li class="note-list">
<xsl:variable name="targetUnique" select="."/>
<xsl:variable name="noteListId" select="generate-id($thisNotes)"/>
<xsl:variable name="noteListId" select="uuid:randomUUID()"/>
<label for="{$noteListId}">
<xsl:variable name="targetIds" select="tokenize($targetUnique, ' ')"/>
<xsl:for-each select="$targetIds">
......@@ -240,7 +240,7 @@
<xsl:template match="philology//note">
<li class="note-item">
<xsl:variable name="noteItemId" select="generate-id()"/>
<xsl:variable name="noteItemId" select="uuid:randomUUID()"/>
<label for="{$noteItemId}">
<xsl:value-of select="@type"/>
</label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment