You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2004/01/16 16:33:14 UTC
cvs commit: maven-plugins/pdf/src/plugin-resources fo-body.xslt
evenisse 2004/01/16 07:33:14
Modified: pdf/src/plugin-resources fo-body.xslt
Log:
Add external link in pdf
Revision Changes Path
1.2 +10 -4 maven-plugins/pdf/src/plugin-resources/fo-body.xslt
Index: fo-body.xslt
===================================================================
RCS file: /home/cvs/maven-plugins/pdf/src/plugin-resources/fo-body.xslt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fo-body.xslt 15 Jan 2004 13:57:44 -0000 1.1
+++ fo-body.xslt 16 Jan 2004 15:33:14 -0000 1.2
@@ -339,16 +339,22 @@
<!-- 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/>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org