ok I'll watch for this problem :-)

-----Message d'origine-----
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 16 janvier 2004 17:13
À : Maven Developers List
Objet : Re: cvs commit: maven-plugins/pdf/src/plugin-resources
fo-body.xslt


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" <[EMAIL PROTECTED]>
To: "Maven Developers List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 16 janvier 2004 16:33
À : [EMAIL PROTECTED]
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="[EMAIL PROTECTED] and not(ancestor::table)]">
  +
  +  <xsl:template match="[EMAIL PROTECTED] and not(ancestor::table) and
starts-with(@href, 'http')]">
       <fo:basic-link external-destination="[EMAIL PROTECTED]">
         <fo:inline xsl:use-attribute-sets="href">
         <xsl:apply-templates />
         </fo:inline>
       </fo:basic-link>
     </xsl:template>
  -  -->
  +
  +  <xsl:template match="[EMAIL PROTECTED] and not(ancestor::table) and
not(starts-with(@href, 'http'))]">
  +    <fo:basic-link internal-destination="[EMAIL PROTECTED]()}">
  +      <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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to