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

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

parent 9b6b4409
Branches
No related tags found
1 merge request!36Resolve "replace uuid"
......@@ -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"
xmlns:uuid="java:java.util.UUID" exclude-result-prefixes="xs" version="2.0"
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="uuid:randomUUID()"/>
<xsl:variable name="noteIconId" select="generate-id()"/>
<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="uuid:randomUUID()"/>
<xsl:variable name="noteItemId" select="generate-id()"/>
<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:uuid="java:java.util.UUID"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tei="http://www.tei-c.org/ns/1.0"
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="uuid:randomUUID()"/>
<xsl:variable name="noteIconId" select="generate-id()"/>
<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="uuid:randomUUID()"/>
<xsl:variable name="noteListId" select="generate-id($thisNotes)"/>
<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="uuid:randomUUID()"/>
<xsl:variable name="noteItemId" select="generate-id()"/>
<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.
Please register or to comment