Skip to content

Commit

Permalink
Introduce json-ld-base.dir parameter
Browse files Browse the repository at this point in the history
This is for the external JSON files. By default, it's defined as
"$base.dir". It is used to collect all files under one roof
(=directory).
This makes the search-and-integrate algorithm in Docserv code easier.
  • Loading branch information
tomschr committed Mar 18, 2024
1 parent 1942b5a commit 794ead6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions suse2022-ns/xhtml/json-ld.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@
select="$filename"/>" for <xsl:value-of select="local-name($node)"/>
Found <xsl:value-of select="count($stitchxml)"/> node(s) (=<xsl:value-of select="local-name($stitchxml)"/>).
<xsl:if test="$dcfilename">Found DC filename "<xsl:value-of select="$dcfilename"/>"</xsl:if>
base.dir="<xsl:value-of select="$base.dir"/>"
json-ld-base.dir="<xsl:value-of select="$json-ld-base.dir"/>"
filename="<xsl:value-of select="$filename"/>"
</xsl:message>
-->
<xsl:call-template name="write.chunk">
<xsl:with-param name="filename" select="concat($base.dir, $filename)"/>
<xsl:with-param name="filename" select="concat($json-ld-base.dir, $filename)"/>
<xsl:with-param name="quiet" select="0"/>
<xsl:with-param name="method">text</xsl:with-param>
<xsl:with-param name="doctype-public"/>
Expand Down
2 changes: 2 additions & 0 deletions suse2022-ns/xhtml/param.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ task before
<xsl:param name="generate.json-ld.external" select="0"/>
<!-- Filename to the single stitch file that Docserv generates on startup -->
<xsl:param name="stitchfile"/>
<!-- The base.dir to store all external JSON files -->
<xsl:param name="json-ld-base.dir" select="$base.dir"/>
<!-- Should the individual authors be used? 0=no, 1=yes -->
<xsl:param name="json-ld-use-individual-authors" select="1"/>
<!-- File extension -->
Expand Down

0 comments on commit 794ead6

Please sign in to comment.