RE: fo:basic-link

2003-09-18 Thread Andreas L. Delmelle
 -Original Message-
 From: Lucian Opris [mailto:[EMAIL PROTECTED]

 Ok, I did upgrade the FOP version links are fine (not offseted)
 but I get another error regarding fonts embedding.
 Cannot extract the embedded font 'Arial, BoldItalic' Some
 charachters may not display or print correctly.
 Arial BoldItalics was fine in previous version.
 snippet of config.xml



This error shows up when you open the file in Acrobat, right?
Problem with embedded font, either with the stream embedded in the PDF
itself (- occurs when using encryption  embedded fonts in 0.20.5), but
AFAICT from the supplied config snippet, you are not actually embedding the
fonts but referencing them ( embed-file= ), so ...


   font metrics-file=/nas/web/fonts/arialbi.xml kerning=yes
 embed-file=
   font-triplet name=ArialBDI style=normal weight=normal/
   /font



something is wrong with this entry ( name or XML metrics file ). You're sure
the spelling is correct?

( Also, I would change the triplets to resemble the entries in the
userconfig.xml supplied with FOP, namely :

font-triplet name=Arial style=[normal|italic] weight=[normal|bold] /

This allows you to reference this font-family using properly formed XSL-FO
font-property combinations, instead of having to specify a different
font-family for every one of them individually.)

Hope this helps.


Greetz,

Andreas Delmelle


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



Re: fo:basic-link

2003-09-18 Thread J.Pietschmann
Lucian Opris wrote:
  font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=
   ^^^
I don't think this is a good idea.
J.Pietschmann

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


RE: fo:basic-link

2003-09-18 Thread Lucian Opris

Hi,
I've regenerated the arial.xml using command line:

java -cp 
build/fop.jar:lib/avalon-framework-cvs-20020806.jar:lib/xml-apis.jar:lib/xercesImpl-2.2.1.jar
 org.apache.fop.fonts.apps.TTFReader /nas/web/fonts/arial.ttf 
/nas/web/fonts/arial.xml
and in config file I have

font metrics-file=/nas/web/fonts/arial.xml kerning=yes 
embed-file=/nas/web/fonts/arial.ttf
  font-triplet name=Arial style=[normal|italic] 
weight=[normal|bold]/
/font
I get the same result.
Could you tell my why is not a good ideea?
Thanks a lot


Lucian Opris

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 5:33 PM
To: [EMAIL PROTECTED]
Subject: Re: fo:basic-link


Lucian Opris wrote:
   font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=
^^^
I don't think this is a good idea.

J.Pietschmann



-
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]



RE: fo:basic-link

2003-09-18 Thread Andreas L. Delmelle
 -Original Message-
 From: Lucian Opris [mailto:[EMAIL PROTECTED]
 
 font metrics-file=/nas/web/fonts/arial.xml kerning=yes 
 embed-file=/nas/web/fonts/arial.ttf

This seems fine...

   font-triplet name=Arial style=[normal|italic] 
 weight=[normal|bold]/
 /font

however, I believe you have misunderstood me here.
What I meant was 4 font-triplets, normal/bold/italic/bold italic,

The one with name=Arial gets style=normal, weight=normal
 name=ArialI   style=italic, weight=normal
 name=ArialBD  style=normal, weight=bold
 name=ArialBDI style=italic, weight=bold

This should work fine and is definitely not a bad idea... :)


Greetz,

Andreas Delmelle


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



Re: fo:basic-link

2003-09-18 Thread J.Pietschmann
Lucian Opris wrote:
Hi,
I've regenerated the arial.xml using command line:
java -cp 
build/fop.jar:lib/avalon-framework-cvs-20020806.jar:lib/xml-apis.jar:lib/xercesImpl-2.2.1.jar
 org.apache.fop.fonts.apps.TTFReader /nas/web/fonts/arial.ttf 
/nas/web/fonts/arial.xml
and in config file I have
font metrics-file=/nas/web/fonts/arial.xml kerning=yes 
embed-file=/nas/web/fonts/arial.ttf
  font-triplet name=Arial style=[normal|italic] 
weight=[normal|bold]/
/font
I get the same result.
Could you tell my why is not a good ideea?
You need a file to embed.
Try something like
fonts
 font metrics-file=/nas/web/fonts/arial.xml kerning=yes
 embed-file=/nas/web/fonts/arial.ttf
   font-triplet name=Arial style=normal weight=normal/
 /font
 font metrics-file=/nas/web/fonts/arial.xml kerning=yes
 embed-file=/nas/web/fonts/arialb.ttf
   font-triplet name=Arial style=normal weight=bold/
 /font
 ...
You need a TTF file for the bold (and other derived) font.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fo:basic-link

2003-09-17 Thread Chris Bowditch
From: Lucian Opris [EMAIL PROTECTED]
Hi,
I've tried to use fo:basic-link internal-destination= in region-start 
section but no result came out.
It's fine if I'm using the same code in regin-body. Do you know a fix for 
that or is a bug?
Thanks a lot

Do you see any output in the console? Try running your example from the 
command line and post a small snippet of the console output to the list. I 
am just wondering whether content in your static regions is being truncated.

It would also be helpful to see a small snippet of your FO document.
Chris
_
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband

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


RE: fo:basic-link

2003-09-17 Thread Lucian Opris
Hi,
I do not see any output in console and no errors. I've run the example from 
command line and I got the same result.
Attached is a snippet of FO doccument.
Thank you

Lucian Opris

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 4:53 AM
To: [EMAIL PROTECTED]
Subject: Re: fo:basic-link


From: Lucian Opris [EMAIL PROTECTED]

Hi,
I've tried to use fo:basic-link internal-destination= in region-start 
section but no result came out.
It's fine if I'm using the same code in regin-body. Do you know a fix for 
that or is a bug?
Thanks a lot


Do you see any output in the console? Try running your example from the 
command line and post a small snippet of the console output to the list. I 
am just wondering whether content in your static regions is being truncated.

It would also be helpful to see a small snippet of your FO document.

Chris

_
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband


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

?xml version=1.0?
xsl:stylesheet  version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xmlns:fo=http://www.w3.org/1999/XSL/Format;
   xmlns:fox=http://xml.apache.org/fop/extensions;
   xmlns:math=http://exslt.org/math;
   xmlns:exsl=http://exslt.org/functions;
   xmlns:xalan=http://xml.apache.org/xalan;
   extension-element-prefixes=xalan
   exclude-result-prefixes=xalan
 !--xsl:output indent=yes/--
 xsl:template match=/
  fo:root
   fo:layout-master-set
 fo:simple-page-master
margin-right=0mm
margin-left=14mm
margin-bottom=0mm
margin-top=9mm
page-width=215.9mm
page-height=279.4mm
master-name=first
  fo:region-before extent=35mm region-name=header-first 
precedence=true/
 xsl:choose
   xsl:when test=Product/ProductStatus/@documentStatus lt; '7'
fo:region-body  margin-top=35mm margin-bottom=20mm 
margin-left=66mm margin-right=10mm 
background-image=/nas/web/clients/kbw/style/Draft1.gif/
   /xsl:when
   xsl:otherwise
fo:region-body  margin-top=35mm margin-bottom=20mm 
margin-left=66mm margin-right=10mm/
   /xsl:otherwise
 /xsl:choose
  fo:region-after extent=20mm region-name=footer-first 
precedence=true/
  fo:region-start extent=63mm  region-name=start-first/
 /fo:simple-page-master

 fo:simple-page-master
margin-right=0mm
margin-left=14mm
margin-bottom=0mm
margin-top=12mm
page-width=215.9mm
page-height=279.4mm
master-name=second
  fo:region-before extent=23mm region-name=header-second/
 xsl:choose
   xsl:when test=Product/ProductStatus/@documentStatus lt; '7'
fo:region-body  margin-top=24mm margin-bottom=17mm 
margin-right=10mm  background-image=/nas/web/clients/kbw/style/Draft1.gif/
   /xsl:when
   xsl:otherwise
fo:region-body  margin-top=24mm margin-bottom=17mm 
margin-right=10mm/
   /xsl:otherwise
 /xsl:choose
  fo:region-after extent=15mm region-name=footer-second/
 /fo:simple-page-master

  fo:page-sequence-master master-name=run1
 fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference master-reference=first 
page-position=first/
 fo:conditional-page-master-reference master-reference=second 
page-position=rest/
 fo:conditional-page-master-reference master-reference=second /
 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master

   /fo:layout-master-set


   fo:static-content flow-name=start-first

!-- THIS PORTION IS NOT WORKING --

fo:block font-size=11pt
 xsl:apply-templates select=//Content/Resource/Data/body_text/H2 
mode=toc/
/fo:block

   /fo:static-content

   
   fo:flow flow-name=xsl-region-body border-width=0.2pt

!-- THIS PORTION IS WORKING --

fo:block font-size=11pt
 xsl:apply-templates select=//Content/Resource/Data/body_text/H2 
mode=toc/
/fo:block
   /fo:flow
  /fo:page-sequence

 /fo:root
/xsl:template

xsl:template match=//Content/Resource/Data/body_text/H2
 fo:table table-layout=fixed id={generate-id()}
 fo:table-column column-width=53mm/
 fo:table-column column-width=5mm/
 fo:table-column column-width=133.9mm/
  fo:table-body
   fo:table-row
fo:table-cell
 fo:block padding-top=1mm
   font-style=italic
  xsl:for-each select=CallOuts
   fo:block
xsl:value-of select=./xsl:text /xsl:text
   /fo:block
  /xsl:for-each
 /fo:block
/fo:table-cell
fo:table-cell/
fo:table

RE: fo:basic-link

2003-09-17 Thread Chris Bowditch
From: Lucian Opris [EMAIL PROTECTED]
Hi,
I do not see any output in console and no errors. I've run the example from 
command line and I got the same result.
I know result is same, I just wanted to know what you saw on Console. So you 
dont see anything like;

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] Parsing of document complete, stopping renderer
It may help to post what you see here.
Attached is a snippet of FO doccument.
Hmmm hotmail insists that there is a virus in your attachment so I cant 
look at it. Could you re-send (minus virus of course)?

snip/
Chris
_
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: fo:basic-link

2003-09-17 Thread Lucian Opris
the snippet without attachment

?xml version=1.0?
xsl:stylesheet  version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xmlns:fo=http://www.w3.org/1999/XSL/Format;
   xmlns:fox=http://xml.apache.org/fop/extensions;
   xmlns:math=http://exslt.org/math;
   xmlns:exsl=http://exslt.org/functions;
   xmlns:xalan=http://xml.apache.org/xalan;
   extension-element-prefixes=xalan
   exclude-result-prefixes=xalan
 !--xsl:output indent=yes/--
 xsl:template match=/
  fo:root
   fo:layout-master-set
 fo:simple-page-master
margin-right=0mm
margin-left=14mm
margin-bottom=0mm
margin-top=9mm
page-width=215.9mm
page-height=279.4mm
master-name=first
  fo:region-before extent=35mm region-name=header-first 
precedence=true/
 xsl:choose
   xsl:when test=Product/ProductStatus/@documentStatus lt; '7'
fo:region-body  margin-top=35mm margin-bottom=20mm 
margin-left=66mm margin-right=10mm  
background-image=/nas/web/clients/kbw/style/Draft1.gif/
   /xsl:when
   xsl:otherwise
fo:region-body  margin-top=35mm margin-bottom=20mm 
margin-left=66mm margin-right=10mm/
   /xsl:otherwise
 /xsl:choose
  fo:region-after extent=20mm region-name=footer-first 
precedence=true/
  fo:region-start extent=63mm  region-name=start-first/
 /fo:simple-page-master

 fo:simple-page-master
margin-right=0mm
margin-left=14mm
margin-bottom=0mm
margin-top=12mm
page-width=215.9mm
page-height=279.4mm
master-name=second
  fo:region-before extent=23mm region-name=header-second/
 xsl:choose
   xsl:when test=Product/ProductStatus/@documentStatus lt; '7'
fo:region-body  margin-top=24mm margin-bottom=17mm 
margin-right=10mm   background-image=/nas/web/clients/kbw/style/Draft1.gif/
   /xsl:when
   xsl:otherwise
fo:region-body  margin-top=24mm margin-bottom=17mm 
margin-right=10mm/
   /xsl:otherwise
 /xsl:choose
  fo:region-after extent=15mm region-name=footer-second/
 /fo:simple-page-master

  fo:page-sequence-master master-name=run1
 fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference master-reference=first 
page-position=first/
 fo:conditional-page-master-reference master-reference=second 
page-position=rest/
 fo:conditional-page-master-reference master-reference=second /
 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master

   /fo:layout-master-set


   fo:static-content flow-name=start-first

!-- THIS PORTION IS NOT WORKING --

fo:block font-size=11pt
 xsl:apply-templates select=//Content/Resource/Data/body_text/H2 
mode=toc/
/fo:block

   /fo:static-content

   
   fo:flow flow-name=xsl-region-body border-width=0.2pt

!-- THIS PORTION IS WORKING --

fo:block font-size=11pt
 xsl:apply-templates select=//Content/Resource/Data/body_text/H2 
mode=toc/
/fo:block
   /fo:flow
  /fo:page-sequence

 /fo:root
/xsl:template

xsl:template match=//Content/Resource/Data/body_text/H2
 fo:table table-layout=fixed id={generate-id()}
 fo:table-column column-width=53mm/
 fo:table-column column-width=5mm/
 fo:table-column column-width=133.9mm/
  fo:table-body
   fo:table-row
fo:table-cell
 fo:block padding-top=1mm
   font-style=italic
  xsl:for-each select=CallOuts
   fo:block
xsl:value-of select=./xsl:text /xsl:text
   /fo:block
  /xsl:for-each
 /fo:block
/fo:table-cell
fo:table-cell/
fo:table-cell
 fo:block space-before.optimum=4px
   font-family=Times
   font-weight=bold
   font-size=16px
xsl:apply-templates/
 /fo:block
/fo:table-cell
   /fo:table-row
  /fo:table-body
 /fo:table
/xsl:template

xsl:template match=//Content/Resource/Data/body_text/H2 mode=toc
 fo:block
  fo:basic-link internal-destination={generate-id()}
   xsl:value-of select=./
  /fo:basic-link
 /fo:block
/xsl:template


/xsl:stylesheet

   


Lucian Opris
Programmer Analyst 
-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 9:59 AM
To: [EMAIL PROTECTED]
Subject: RE: fo:basic-link


From: Lucian Opris [EMAIL PROTECTED]

Hi,
I do not see any output in console and no errors. I've run the example from 
command line and I got the same result.

I know result is same, I just wanted to know what you saw on Console. So you 
dont see anything like;

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] Parsing of document complete

RE: fo:basic-link

2003-09-17 Thread Lucian Opris
I've notice that the actual internal link is on the same line but starts on 
body region and the text remains on start region. Very strange. I'm using  FOP 
0.20.4.
Thanks

Lucian Opris


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



RE: fo:basic-link

2003-09-17 Thread Chris Bowditch
From: Lucian Opris [EMAIL PROTECTED]
the snippet without attachment
thanks, although you've sent XSLT not XSL-FO.
big snip/
   fo:static-content flow-name=start-first
this might be the problem. IIRC FOP doesnt yet support referencing named 
regions, and only works with xsl-region-before.

!-- THIS PORTION IS NOT WORKING --
fo:block font-size=11pt
 xsl:apply-templates select=//Content/Resource/Data/body_text/H2 
mode=toc/
/fo:block

   /fo:static-content

snip/
if the above suggestion doesnt help then its difficult to work with XSLT 
without the input XML. Please send the FO. if you dont know how to get FO 
from XSLT and XML using FOP then see here;

http://xml.apache.org/fop/running.html#check-input
Chris
_
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband

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


RE: fo:basic-link

2003-09-17 Thread Chris Bowditch
From: Lucian Opris [EMAIL PROTECTED]
I've notice that the actual internal link is on the same line but starts on 
body region and the text remains on start region. Very strange. I'm using  
FOP 0.20.4.
Thanks

This could be the famous Hotspot offset bug. This bug has been partly fixed 
in 0.20.5. I suggest you upgrade.

Chris
_
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: fo:basic-link

2003-09-17 Thread Lucian Opris
Ok, I did upgrade the FOP version links are fine (not offseted) but I get 
another error regarding fonts embedding.
Cannot extract the embedded font 'Arial, BoldItalic' Some charachters may not 
display or print correctly.
Arial BoldItalics was fine in previous version.
snippet of config.xml


  font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=
  font-triplet name=Arial style=normal weight=normal/
  /font

  font metrics-file=/nas/web/fonts/arialbd.xml kerning=yes embed-file=
  font-triplet name=ArialBD style=normal weight=normal/
  /font

  font metrics-file=/nas/web/fonts/arialbi.xml kerning=yes embed-file=
  font-triplet name=ArialBDI style=normal weight=normal/
  /font

  font metrics-file=/nas/web/fonts/ariali.xml kerning=yes embed-file=
  font-triplet name=ArialI style=normal weight=normal/
  /font


Thanks.

Lucian Opris
Programmer Analyst 
[EMAIL PROTECTED]
BlueMatrix
212 475 9330

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: RE: fo:basic-link


From: Lucian Opris [EMAIL PROTECTED]

I've notice that the actual internal link is on the same line but starts on 
body region and the text remains on start region. Very strange. I'm using  
FOP 0.20.4.
Thanks


This could be the famous Hotspot offset bug. This bug has been partly fixed 
in 0.20.5. I suggest you upgrade.

Chris

_
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


-
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]



fo:basic-link

2003-09-16 Thread Lucian Opris
Hi,
I've tried to use fo:basic-link internal-destination= in region-start 
section but no result came out.
It's fine if I'm using the same code in regin-body. Do you know a fix for that 
or is a bug?
Thanks a lot

Lucian Opris


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



RE: Problem with fo:basic-link and fo:block-container

2003-08-12 Thread Victor Mote
Julian Reschke wrote:

 I've got an example that still doesn't work with 0.20.5
 (basic-link content
 is a page ref, and it occurs in a two-column layout). Does is
 make sense to
 pursue this further, or will I have to wait for the new design FOP?

I've got an example that fails with leaders as well. I can't speak for the
other developers, but I don't intend to invest any time fixing it in the
maintenance branch. The critical thing from a development standpoint right
now is to get back to the place where we are only developing on one branch.
We are attacking that problem from several different angles right now, all
of them on the trunk. About the only thing that will drag me away from that
task right now is helping users and developers get up to speed, i.e.
documentation. Once we get back to one line of development, we can work on
both bugs and features in a much more sane environment.

Victor Mote


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



fo:basic-link from xsl:apply-templates/

2003-02-21 Thread Steven Berkowitz
I'm trying to have url's included inline in a paragraph.  The relevant code is:

---
xsl:template match=summary
  fo:block font-size=11pt
xsl:apply-templates/
  /fo:block
/xsl:template

xsl:template match=link
  fo:basic-link
xsl:attribute name=external-destinationxsl:value-of
select=url//xsl:attribute
xsl:attribute name=colorblue/xsl:attribute
xsl:value-of select=text/
  /fo:basic-link
/xsl:template
---

Where the summary element in the XML is mixed content containing a link element.

When I try to convert the XML document to PDF, I get the following error:
org.apache.fops.apps.FOPException:  inline formatting objects cannot be
directly under flow

Okay, if I surround the fo:basic-link.../fo:basic-link block with
fo:block/fo:block tags, the PDF is generated but the link is placed on its
own line, which is obviously not a desired result.

Any suggestions, work arounds, etc., would be most appreciated.

TIA,

Steven Berkowitz

PS - if this is an XSL:FO issue and not a FOP issue, feel free to tell me RTFM,
I've got a thick skin.  Googling around, though didn't get me anywhere, so here
we are.

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



Fo:basic link

2002-06-19 Thread Neeru . Bhardwaj

Is it possible to sepcify a destination page in basic-link
external-destination. I am trying to link to an external pdf file and want
to goto a specifi page.
Thanks

-Neeru



Re: Fo:basic link

2002-06-19 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
Is it possible to sepcify a destination page in basic-link
external-destination. I am trying to link to an external pdf file and want
to goto a specifi page.
Try this way:
fo:basic-link external-destination=http://www.foo.com/bar.pdf#page=5;
--
Oleg Tkachenko
Multiconn International Ltd, Israel


fo:basic-link problem in table-cell

2002-05-23 Thread Sandra Maurer
Hi,
I try to write a link in a table-cell.
The problem is that the actual link is not at the same position than the 
text of the link.

It works when I take the block including the link out of the table-cell.
This is what I try to do:
   fo:table-cell
   fo:block padding-top=3pt 
padding-bottom=3pt
   fo:basic-link
   xsl:attribute 
name=external-destination
   
xsl:textnormal.pdf/xsl:text
   /xsl:attribute
   
xsl:textnormal.pdf/xsl:text
   /fo:basic-link
   /fo:block
   /fo:table-cell

Regards,
Sandra


fo:basic-link does not work in xsl-region-before?

2002-04-04 Thread Costantino Sertorio
Hi, does anyone know if this is a FOP bug?

It appears to me that a basic-link cannot be used in the region-before, as
in the following snippet:

fo:static-content flow-name=xsl-region-before
  fo:block
fo:basic-link color=red external-destination=http://www.abc.def;
www.abc.def/fo:basic-link
  /fo:block
...

BTW, this was a bug in FOP 0.17, marked #964 in bugzilla.

Thanks,

Costantino



Re: fo:basic-link on svg image

2002-03-23 Thread J.Pietschmann
Saif Khaja [EMAIL PROTECTED] wrote:
 Here it is what I was trying to achieve. Each rect in this svg image 
would
 point to a different bookmark in the same PDF document (as shown in 
comments
 in the svg code).

The svg:a element links to URLs only. You can't adress positions
in a PDF file easily with an URL.
Apart from this, i havn't found any indication that Batik can
generate links for SVGs embedded in PDF, regardless whether
it links to a position within the PDF or elsewhere. You might,
however, ask on the batik-user list to confirm this.
According to the spec, a fo:simple-link around a
fo:instream-foreign-object should work. However, FOP 0.20.3
apparently generates only links attached to text
(whitespace doesn't work either), so you seem to be out of
luck. I don't know whether this is a FOP peculiarity or a
restriction imposed by the PDF format.
HTH
J.Pietschmann



fo:basic-link on svg image

2002-03-22 Thread Saif Khaja
Hi,
I was trying to set a link on one of the svg images to point out to a 
bookmark id set on the pdf page. Has anyone tried this before.

It works fine for text data. For example,
fo:basic-link internal-destination=mark1
  Testing link
/fo:basic-link
For svg images, this doesnt work however. The following lines will not even 
display the svg rectangle image.

fo:basic-link internal-destination=mark1
  svg:rect x=100 y=100 width=100 height=200/
fo:basic-link
Referring to svg examples, links in svg use a, which apparently works for 
a standalone svg image, but doesnt work in fop.

Any help appreciated.
Thanks,
Saif.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


Re: fo:basic-link on svg image

2002-03-22 Thread Keiron Liddle
The second example is not valid.
You cannot simply place some piece of svg inside fo. SVG can only be used 
in an instream-foreign-object and the xml inside that fo object must be 
valid for svg.

As SVG cannot link internally in the fo document then you cannot do it 
with svg.

On 2002.03.22 03:29 Saif Khaja wrote:
Hi,
I was trying to set a link on one of the svg images to point out to a 
bookmark id set on the pdf page. Has anyone tried this before.

It works fine for text data. For example,
fo:basic-link internal-destination=mark1
  Testing link
/fo:basic-link
For svg images, this doesnt work however. The following lines will not 
even display the svg rectangle image.

fo:basic-link internal-destination=mark1
  svg:rect x=100 y=100 width=100 height=200/
fo:basic-link
Referring to svg examples, links in svg use a, which apparently works 
for a standalone svg image, but doesnt work in fop.

Any help appreciated.
Thanks,
Saif.


Re: fo:basic-link on svg image

2002-03-22 Thread Saif Khaja
I have SVG working in FOP, and it works great (except some minor issues, 
which is out of scope of this mail here). And I didnt post the complete svg 
code in my previous mail.

Here it is what I was trying to achieve. Each rect in this svg image would 
point to a different bookmark in the same PDF document (as shown in comments 
in the svg code).

!--  SVG code = --
fo:block xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:instream-foreign-object xmlns:svg=http://www.w3.org/2000/svg;
svg:svg width=600 height=400
svg:rect x=20 y=20 width=100 height=200
style=stroke:rgb(0,0,0);stroke-width:1/
!-- This RECT links to book mark - 1 --
svg:rect x=15 y=30 width=110 height=50
style=stroke:rgb(0,0,0);stroke-width:1;fill:rgb(60,237,248)/
!-- This RECT links to book mark - 2 --
svg:rect x=15 y=90 width=110 height=50
style=stroke:rgb(0,0,0);stroke-width:1;fill:rgb(60,237,248)/
!-- This RECT links to book mark - 3 --
svg:rect x=15 y=150 width=110 height=50
style=stroke:rgb(0,0,0);stroke-width:1;fill:rgb(60,237,248)/
svg:text x=75 y=50 
style=fill:rgb(0,0,0);font-size:10;font-family:Andale MonoLTUE/svg:text

/svg:svg
/fo:instream-foreign-object
/fo:block
Now, is there any way I can provide links (either external or internal) to 
an SVG image inside a pdf document.

Thanks,
Saif.


From: Joerg Pietschmann [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: FOP User [EMAIL PROTECTED]
Subject: Re: fo:basic-link on svg image
Date: Fri, 22 Mar 2002 11:09:21 +0100
Saif Khaja [EMAIL PROTECTED] wrote:
 fo:basic-link internal-destination=mark1
 svg:rect x=100 y=100 width=100 height=200/
 fo:basic-link
If you want to embed SVG data into a FO document, you have
to use a fo:instream-foreign-object.
Furthermore, i vaguely remember that you need a top level
svg:svg element.
Therefore, try:
   fo:instream-foreign-object
 svg:svg width=10mm height=20mm viewBox=0 0 101 201
  svg:rect x=0 y=0 width=100 height=200/
 /svg:svg
   /fo:instream-foreign-object
I think it would be a good idea to try the embedded SVG
code in a SVG viewer first in order to see whether it works
and embed it only after you got it working. It may still be
tricky to manage the window/viewport issues, documentation
is very scarce.
Assistance to get your SVG working is more likely to be found
on other lists. If you use Batik as standalone viewer, you
could try batik-user.
J.Pietschmann


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


RE: Does fo:basic-link work with 0.20.1 ?

2002-01-29 Thread Anil Pinto
Hi Dharmendra,

Thanks for taking the time to reply to my query :-)

I actually was doing the same thing but the only
outstanding thing I noticed was that I was doing it
within a fo:block-container and that was causing the
effect of the fo:basic-link being masked ()

So I has to get rid of those fo:block-container tags
to get the fo:basic-link to work properly. (It works
perfectly now ... :-) )

If Anyone out there has actually got the
fo:basic-link to work within the
fo:block-container please let me know. Else should
this be registered as a bug/feature  

I just wanted to share this experience :-)

Anil.


--- Sharan, Dharmendra [EMAIL PROTECTED]
wrote:
 Hi Anil,
 
use something like...
 
 fo:block font-size=8pt
 font-family=sans-serif
 text-align=justify
fo:inline font-style=italic
   URL:
/fo:inline
!-- text-med-blue --
fo:basic-link color=#99
 text-decoration=underline
 external-destination=[EMAIL PROTECTED]
   fo:inline font-size=8pt
  xsl:value-of
 select=@applicableUrl/
   /fo:inline
/fo:basic-link
 /fo:block
 
 [EMAIL PROTECTED] may be replaced with your
 URL...eg.http://www.oracle.com or
 as a variable shown in example above
 
hth,
 
Dharmendra
 
 -Original Message-
 From: Anil Pinto [mailto:[EMAIL PROTECTED]
 Sent: Sunday, January 27, 2002 7:53 PM
 To: [EMAIL PROTECTED]
 Subject: Does fo:basic-link work with 0.20.1 ?
 
 
 Hi all,
 
 I was trying out the fo:basic-link but couldn't get
 it
 to work.
 
 Was wondering if has successfully used it
 
 I am using the tag within a fo:block as follows
 
 fo:block
 fo:basic-link
 external-destination=http://www.oracle.com;
 color=blue text-decoration=underlineOracle
 fo:basic-link
 /fo:block 
 
 any help will be greatly appreciated :-)
 
 Anil.
 
 __
 Do You Yahoo!?
 Great stuff seeking new owners in Yahoo! Auctions! 
 http://auctions.yahoo.com


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com


RE: Does fo:basic-link work with 0.20.1 ?

2002-01-28 Thread Sharan, Dharmendra
Hi Anil,

   use something like...

fo:block font-size=8pt font-family=sans-serif
text-align=justify
   fo:inline font-style=italic
  URL:
   /fo:inline
   !-- text-med-blue --
   fo:basic-link color=#99 text-decoration=underline
external-destination=[EMAIL PROTECTED]
  fo:inline font-size=8pt
 xsl:value-of select=@applicableUrl/
  /fo:inline
   /fo:basic-link
/fo:block

[EMAIL PROTECTED] may be replaced with your URL...eg.http://www.oracle.com or
as a variable shown in example above

   hth,

   Dharmendra

-Original Message-
From: Anil Pinto [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 7:53 PM
To: [EMAIL PROTECTED]
Subject: Does fo:basic-link work with 0.20.1 ?


Hi all,

I was trying out the fo:basic-link but couldn't get it
to work.

Was wondering if has successfully used it

I am using the tag within a fo:block as follows

fo:block
fo:basic-link
external-destination=http://www.oracle.com;
color=blue text-decoration=underlineOracle
fo:basic-link
/fo:block 

any help will be greatly appreciated :-)

Anil.

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com


RE: About fo:basic-link

2002-01-10 Thread Smethurst, Michael
if you're matching the same nodes in different modes

use 

fo:basic-link internal-destination={generate-id(.)}link/fo:basic-link
on the link

and

fo:block id={generate-id(.)}whatever/fo:block on the destination

[EMAIL PROTECTED]