Fix links in table

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse 2004-01-21 11:47:34 +00:00
parent afc1323fe1
commit d7b793bb88

View File

@ -323,7 +323,7 @@
</xsl:choose>
</xsl:template>
<!-- Templates for handling XHTML tags -->
<xsl:template match="a[@href and not(ancestor::table) and (starts-with(@href, 'http') or starts-with(@href, 'mailto') or starts-with(@href, 'ftp'))]">
<xsl:template match="a[@href and (starts-with(@href, 'http') or starts-with(@href, 'mailto') or starts-with(@href, 'ftp'))]">
<xsl:param name="chapterNumber"/>
<fo:basic-link external-destination="{@href}">
<fo:inline xsl:use-attribute-sets="href">
@ -335,7 +335,7 @@
</fo:inline>
</fo:basic-link>
</xsl:template>
<xsl:template match="a[@href and not(ancestor::table) and starts-with(@href, '#')]">
<xsl:template match="a[@href and starts-with(@href, '#')]">
<xsl:param name="chapterNumber"/>
<fo:basic-link internal-destination="{$chapterNumber}{@href}">
<fo:inline xsl:use-attribute-sets="href">
@ -347,7 +347,7 @@
</fo:inline>
</fo:basic-link>
</xsl:template>
<xsl:template match="a[@href and not(ancestor::table) and not(starts-with(@href, 'http')) and not(starts-with(@href, '#'))]">
<xsl:template match="a[@href and not(starts-with(@href, 'http')) and not(starts-with(@href, 'mailto')) and not(starts-with(@href, 'ftp')) and not(starts-with(@href, '#'))]">
<xsl:param name="chapterNumber"/>
<fo:basic-link internal-destination="{@href}{generate-id()}">
<fo:inline xsl:use-attribute-sets="href">