Skip to content

Commit

Permalink
Fix validation errors from Google's JSON-LD validator
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschr committed Feb 12, 2024
1 parent 01132dc commit 0abd115
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions suse2022-ns/xhtml/json-ld.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
<xsl:param name="node"/>
<xsl:text>{</xsl:text>
"@context": "http://schema.org",
"@type": ["TechArticle", "SoftwareApplication"],
"@type": ["TechArticle"],
<xsl:call-template name="json-ld-type">
<xsl:with-param name="node" select="$node"/>
</xsl:call-template>
Expand Down Expand Up @@ -727,9 +727,9 @@
<xsl:for-each select="$productname">
{ "@type": "SoftwareApplication",
"name": "<xsl:value-of select="."/>",
"softwareVersion": "<xsl:value-of select="@version"/>",
"applicationCategory": "Operating System",
"operatingSystem": "Linux"
<xsl:if test="@version">"softwareVersion": "<xsl:value-of select="@version"/>",</xsl:if>
"applicationCategory": {"name": "Operating System"},
"operatingSystem": {"name": "Linux"}
}
<xsl:if test="position() != last()">,&#10; </xsl:if>
</xsl:for-each>
Expand Down

0 comments on commit 0abd115

Please sign in to comment.