maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Venisse" <emman...@venisse.net>
Subject Re: cvs commit: maven-plugins/pdf/src/plugin-resources fo-body.xslt
Date Fri, 16 Jan 2004 16:12:49 GMT
It's a very simple hack.

For the links, internal links doesn't works correctly. I don't an xsl
expert.

Emmanuel

----- Original Message ----- 
From: "Heritier Arnaud" <aheritier@sopragroup.com>
To: "Maven Developers List" <dev@maven.apache.org>
Cc: <evenisse@apache.org>; <harlock93@laposte.net>
Sent: Friday, January 16, 2004 4:57 PM
Subject: RE: cvs commit: maven-plugins/pdf/src/plugin-resources fo-body.xslt


Well done Emmanuel

The link and the cover the same day it's cool.

I'll try at the latest the next week to correct the tables without thead.


-----Message d'origine-----
De : evenisse@apache.org [mailto:evenisse@apache.org]
Envoyé : vendredi 16 janvier 2004 16:33
À : maven-plugins-cvs@apache.org
Objet : 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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message