Re: [docbook-apps] Convert a relative file link to a URL in docbook

From
Bob Stayton <>
Date
2013-09-16T19:49:14+00:00
ID
91FCE88023DA44B3A18EC271B41E4845@totoro
Thread
Re: [docbook-apps] 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>