lib/isodoc/nist/nist.csts.xsl in metanorma-nist-1.2.16 vs lib/isodoc/nist/nist.csts.xsl in metanorma-nist-1.3.0

- old
+ new

@@ -5,10 +5,11 @@ <xsl:param name="svg_images"/> <xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format --> <xsl:variable name="images" select="document($svg_images)"/> + <xsl:param name="basepath"/> <xsl:variable name="pageWidth" select="'8.5in'"/> <xsl:variable name="pageHeight" select="'11in'"/> @@ -3513,9 +3514,12 @@ <xsl:variable name="src"> <xsl:choose> <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]"> <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/> + </xsl:when> + <xsl:when test="not(starts-with(@src, 'data:'))"> + <xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@src"/> </xsl:otherwise> </xsl:choose> \ No newline at end of file