From 89f028e29e0e1573f1aeee1b4736971fc28afb7d Mon Sep 17 00:00:00 2001 From: Moritz Engelmann <moritz.engelmann@uni-leipzig.de> Date: Mon, 1 Jul 2024 11:54:09 +0200 Subject: [PATCH] format code --- src/main/resources/xslt/biocol2json_ld.xsl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/resources/xslt/biocol2json_ld.xsl b/src/main/resources/xslt/biocol2json_ld.xsl index e0e9d68..c3ca2b5 100644 --- a/src/main/resources/xslt/biocol2json_ld.xsl +++ b/src/main/resources/xslt/biocol2json_ld.xsl @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:schema="http://schema.org" exclude-result-prefixes="xlink xsl xs schema"> +<xsl:stylesheet version="3.0" + xmlns:schema="http://schema.org" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="#all"> <xsl:import href="jsonld-common.xsl" /> @@ -11,7 +13,7 @@ <xsl:param name="WebApplicationBaseURL" /> <xsl:param name="CurrentLang" /> - <xsl:template match="/mycoreobject[contains(@ID,'_biocol_')]" mode="jsonld" priority="1"> + <xsl:template match="/mycoreobject[contains(@ID, '_biocol_')]" mode="jsonld" priority="1"> <xsl:variable name="obj_id"> <xsl:value-of select="@ID" /> </xsl:variable> @@ -30,7 +32,7 @@ <!-- ID --> <xsl:text>
"@id":"</xsl:text> - <xsl:value-of select="concat($WebApplicationBaseURL,'receive/',./@ID)"/> + <xsl:value-of select="concat($WebApplicationBaseURL, 'receive/', ./@ID)"/> <xsl:text>"</xsl:text> <!-- identifier --> -- GitLab