Add external link in pdf
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114598 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -339,16 +339,22 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'>
|
||||
|
||||
|
||||
<!-- Templates for handling XHTML tags -->
|
||||
|
||||
<!--
|
||||
<xsl:template match="a[@href and not(ancestor::table)]">
|
||||
|
||||
<xsl:template match="a[@href and not(ancestor::table) and starts-with(@href, 'http')]">
|
||||
<fo:basic-link external-destination="{@href}">
|
||||
<fo:inline xsl:use-attribute-sets="href">
|
||||
<xsl:apply-templates />
|
||||
</fo:inline>
|
||||
</fo:basic-link>
|
||||
</xsl:template>
|
||||
-->
|
||||
|
||||
<xsl:template match="a[@href and not(ancestor::table) and not(starts-with(@href, 'http'))]">
|
||||
<fo:basic-link internal-destination="{@href}{generate-id()}">
|
||||
<fo:inline xsl:use-attribute-sets="href">
|
||||
<xsl:apply-templates />
|
||||
</fo:inline>
|
||||
</fo:basic-link>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="br">
|
||||
<fo:block/>
|
||||
|
||||
Reference in New Issue
Block a user