Re: bookmark extensions problems
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
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
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]
Re: bookmark
OOPS!! I forgot about the namespace that must be added. Sorry. xmlns:fox=http://xml.apache.org/fop/extensions; - Original Message - From: Joe Sytniak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:14 PM Subject: Re: bookmark xsl:template match=/ fo:root xsl:call-template name=BOOKMARKS/ fo:layout-master-set fo:simple-page-master master-name=simple page-height=16.4cm page-width=24.2cm margin-top=0.5cm margin-bottom=0.5cm margin-left=2cm margin-right=2cm fo:region-before precedence=true extent=1.2cm/ fo:region-body margin-top=1.1cm margin-bottom=0.75cm/ fo:region-after precedence=true extent=0.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:static-content flow-name=xsl-region-before fo:block text-align=left font-size=8pt font-family=serif line-height=14pt vertical-align=top xsl:call-template name=PAGE_HEADER/ /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block text-align=end font-size=8pt font-family=serif line-height=14pt vertical-align=bottom xsl:call-template name=PAGE_FOOTER/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body xsl:apply-templates select=MYDATA/ fo:block id=last-page/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template name=PAGE_HEADER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textPROJECT: /xsl:textxsl:value-of select=MYDATA/@ClientName/xsl:text /xsl:textxsl:value-of select=MYDATA/@ProjectName//fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textSTUFF/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textInitials:_/xsl:text/fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textREVISION: /xsl:text !-- Revision parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textStatus: DRAFT/xsl:text!-- Status parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textDate:__/xsl:text/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=PAGE_FOOTER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=left font-weight=boldxsl:textMy Company Inc. /xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=centerxsl:textConfidential/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=rightPage fo:page-number/ of fo:page-number-citation ref-id=last-page//fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=BOOKMARKS xsl:for-each select=MYDATA fox:outline internal-destination={position()} fox:labelxsl:value-of select=@SomeField//fox:label /fox:outline /xsl:for-each /xsl:template xsl:template match=MYDATA . . . . . /xsl:template . . . . . - Original Message - From: Fischer Tibor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 1:47 PM Subject: bookmark Hello, How can i put entries into the bookmark of the pdf?? Thanks BR, Fishy
Re: bookmark
xsl:template match=/ fo:root xsl:call-template name=BOOKMARKS/ fo:layout-master-set fo:simple-page-master master-name=simple page-height=16.4cm page-width=24.2cm margin-top=0.5cm margin-bottom=0.5cm margin-left=2cm margin-right=2cm fo:region-before precedence=true extent=1.2cm/ fo:region-body margin-top=1.1cm margin-bottom=0.75cm/ fo:region-after precedence=true extent=0.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:static-content flow-name=xsl-region-before fo:block text-align=left font-size=8pt font-family=serif line-height=14pt vertical-align=top xsl:call-template name=PAGE_HEADER/ /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block text-align=end font-size=8pt font-family=serif line-height=14pt vertical-align=bottom xsl:call-template name=PAGE_FOOTER/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body xsl:apply-templates select=MYDATA/ fo:block id=last-page/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template name=PAGE_HEADER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textPROJECT: /xsl:textxsl:value-of select=MYDATA/@ClientName/xsl:text /xsl:textxsl:value-of select=MYDATA/@ProjectName//fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textSTUFF/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textInitials:_/xsl:text/fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textREVISION: /xsl:text !-- Revision parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textStatus: DRAFT/xsl:text!-- Status parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textDate:__/xsl:text/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=PAGE_FOOTER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=left font-weight=boldxsl:textMy Company Inc. /xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=centerxsl:textConfidential/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=rightPage fo:page-number/ of fo:page-number-citation ref-id=last-page//fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=BOOKMARKS xsl:for-each select=MYDATA fox:outline internal-destination={position()} fox:labelxsl:value-of select=@SomeField//fox:label /fox:outline /xsl:for-each /xsl:template xsl:template match=MYDATA . . . . . /xsl:template . . . . . - Original Message - From: Fischer Tibor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 1:47 PM Subject: bookmark Hello, How can i put entries into the bookmark of the pdf?? Thanks BR, Fishy