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]

Reply via email to