Re: bookmark extensions problems

2003-08-05 Thread Clay Leeds
Victor,
On Monday, August 4, 2003, at 04:08  PM, Victor Mote wrote:
Clay Leeds wrote:
The PDF outline items do *not* appear to show up when I process with
xalan.bat. I am using the binary download 0.20.5 version. As I
mentioned before, the strange thing (at least I think it's strange) is
that the example/fo/basic/pdfoutput.fo processes normally and creates
bookmarks.
Sorry, I'm even more confused than before. Are you saying that the fox:
elements do not even appear in the fo file?
Victor Mote
That is correct. The fox: elements do not appear in the intermediate 
.fo file I generated with xalan.

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: bookmark extensions problems

2003-08-05 Thread Clay Leeds
I've got bookmarks working, but there are a couple of lingering, 
annoying issues I've discovered...

Is there a way to bookmark the top of a page (above or at the top of 
fo:region-before)? In particular, I'd like my first bookmark to go to 
the top of the first page. I tried assigning a block id to the first 
element in my fo:region-before, but (as I expected) it complained when 
there were multiple instances. I also tried putting fo:block inside 
fo:page-sequence-master.. but it completely ignored it (I actually 
expected it to generate an error). As it is, I place it at the top of 
the region-body, but clicking it does not bring you to the top of the 
page.

Also, the first Bookmark (Explanation of Review in my 1st example 
below) does not appear to be an actual bookmark. It is merely a 
'container' for the items inside. It highlights in Acrobat--my 
preferences for Acrobat indicate it should highlight where I am 
dynamically when viewing. However, clicking it brings up the first item 
it contains. In the case below, clicking Explanation of Review brings 
you to the ICD9 Section:

fox:outline internal-destination=EOR
  fox:labelExplanation of Review/fox:label
  fox:outline internal-destination=ICD9
fox:labelICD-9 Section/fox:label
  /fox:outline
  fox:outline internal-destination=Details
fox:labelDetails Section/fox:label
fox:outline internal-destination=Totals
  fox:labelTotals Section/fox:label
/fox:outline
  /fox:outline
/fox:outline
NOTE: fo:block id=EOR is at the top of the fo:region-body, so it 
may be behaving as it should. However, clicking it again once something 
else has been clicked has no effect.

Also, is there a way to make all bookmarks default to expanded I've 
tried the following, which, although not expanded gives better 
results (although Totals Section is still hidden):

fox:outline internal-destination=EOR
  fox:labelExplanation of Review/fox:label
/fox:outline
fox:outline internal-destination=ICD9
  fox:labelICD-9 Section/fox:label
/fox:outline
fox:outline internal-destination=Details
  fox:labelDetails Section/fox:label
  fox:outline internal-destination=Totals
fox:labelTotals Section/fox:label
  /fox:outline
/fox:outline
Other notes (may be PDF-related or fox: related):
I've created a bookmark which contains a Details section that spans 
several pages. Unfortunately, clicking the Details Section bookmark 
brings me to the top of the *last* page of the Details section 
(actually it brings me to the top of the fo:region-before for the last 
page of Details). I would've assumed this is because Details is 
something of a container for Totals which is the first item in the 
container. However, that's not the case. I've changed it so Totals 
Section is not indented under Details Section, and it doesn't help (it 
still brings me to the top of the region-before of the last page of 
Details):

fox:outline internal-destination=EOR
  fox:labelExplanation of Review/fox:label
/fox:outline
fox:outline internal-destination=ICD9
  fox:labelICD-9 Section/fox:label
/fox:outline
fox:outline internal-destination=Details
  fox:labelDetails Section/fox:label
/fox:outline
fox:outline internal-destination=Totals
  fox:labelTotals Section/fox:label
/fox:outline
My solution: insert the following above where the DETAILS template is 
called:
  fo:block padding=0pt
fo:block id=EOR padding=0pt margin=0pt 
font-size=0pt#160;/fo:block
xsl:apply-templates select=DETAILS/
  /fo:block

(previously I'd placed the id=EOR call inside the containing 
fo:block padding=0pt as below)

  fo:block id=EOR padding=0pt
xsl:apply-templates select=DETAILS/
  /fo:block
NOTE: I only need to insert an empty fo:block when I know it won't 
fit on a page. It appears that the bookmark will take you to the *top 
of the last page of that section*. At least that's how it works for me.
--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc

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


RE: bookmark extensions problems

2003-08-04 Thread Victor Mote
Clay Leeds wrote:

 I'm having problems getting my Bookmarks to work. I've attempted to
 follow the instructions here without success:

Do the PDF outline items show up, and the links not work, or do the PDF
outline items not show up at all?

Victor Mote


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