← Prev in month ← Prev in thread

Convert a relative file link to a URL in docbook

From
Natalie Kershaw <>
Date
2013-09-16T19:13:36+00:00
ID
Thread
Convert a relative file link to a URL in docbook
<xsl:template match="d:link[@role='relative']">
  <xsl:copy>
    <xsl:attribute name="xlink:href">
      <xsl:value-of select="concat('http://prefix/', @xlink:href)"/>
    </xsl:attribute>
  </xsl:copy>
  <xsl:apply-templates select="d:link"/>
</xsl:template>
← Prev in month ← Prev in thread