xref to mediaobject or imageobject doesn't work
Hi, if I have sect id=x1 xreflabel=label1 and xref linkend=x1 I got in the pdf a link label1. If I click on it the reader jumps to the section. But if I try it with mediaobject id=x2 xreflabel=label2 and xref linkend=x2 I got only the link but can't jump. It also not possible to the the id in the imageobject inside the mediaobject. Is this an probem of fop? wkr Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding Blind Tables for Figures
David Shevitz wrote: snip/ I understand that if I want to keep my captions with my figures in a given document, I should use a blind table. However, all the examples I see were posted around 2 years ago (granted I might be looking in the wrong place). I tried using them, but they don't seem to work. Doesnt matter that its 2 years old, there have been very few releases of FOP in that time. The blind table approach should work to keep a figure with FOP. Perhaps you should explain why it doesnt work for you, and we will try to help solve the problem. snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xref to mediaobject or imageobject doesn't work
Thomas Richter wrote: Hi, if I have sect id=x1 xreflabel=label1 and xref linkend=x1 I got in the pdf a link label1. If I click on it the reader jumps to the section. But if I try it with mediaobject id=x2 xreflabel=label2 and xref linkend=x2 I got only the link but can't jump. It also not possible to the the id in the imageobject inside the mediaobject. Are you using docbook? I'm not familar with the sect and mediaobject elements. To help you, I need to see the XSL-FO. Perhaps you can run your docbook style sheet using xalan.bat to generate the XSL-FO. Otherwise, you might get a better response asking docbook questions on the docbook user list. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xref to mediaobject or imageobject doesn't work
if I have sect id=x1 xreflabel=label1 and xref linkend=x1 I got in the pdf a link label1. If I click on it the reader jumps to the section. This produces: to sect: fo:basic-link internal-destination=x1section 3.3, #8222;label1#8220;/fo:basic-link But if I try it with mediaobject id=x2 xreflabel=label2 and xref linkend=x2 I got only the link but can't jump. And this: to pic: fo:basic-link internal-destination=x2label2/fo:basic-link Looks ok for me ... wkr Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xref to mediaobject or imageobject doesn't work
Thomas Richter schrieb: if I have sect id=x1 xreflabel=label1 and xref linkend=x1 I got in the pdf a link label1. If I click on it the reader jumps to the section. This produces: to sect: fo:basic-link internal-destination=x1section 3.3, #8222;label1#8220;/fo:basic-link But if I try it with mediaobject id=x2 xreflabel=label2 and xref linkend=x2 I got only the link but can't jump. And this: to pic: fo:basic-link internal-destination=x2label2/fo:basic-link But if I search for fo:block id= I only find x1 and not x2 ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fo:inline and line-height / font-size
Hi, I use FOP 0.20.5. I try to get a larger font with fo:inline into a fo:block, but the bigger text always overlaps with the last line. Also line-height does not work in the inline area. Afaik the ANTENNA processor adds extra line-height for the line with the bigger text and I guess it's the right behaviour. Bug or Feature? Are there alternative solutions for that issue? -- Sönke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
block with relative position?
Is it possible to define a block or block-container and give it a relative position? For instance, I need to have a block lay out at the current position, and then shift/float it a set amount relative to this. Is this at all possible? Thanks, Mike __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding Blind Tables for Figures
Thanks. I hadn't realized there have been so few updates to FOP. I noticed on a post that to implement a blind table within a template, I should add the following to my customization layer: xsl:template name=formal.object xsl:param name=placement select='before'/ xsl:variable name=id xsl:call-template name=object.id/ /xsl:variable fo:table table-layout=fixed width=100% fo:table-column column-number=1/ fo:table-body xsl:if test=$placement = 'before' fo:table-row keep-with-next=always xsl:call-template name=formal.object.heading/ /fo:table-row /xsl:if fo:table-row fo:table-cell fo:block id={$id} xsl:use-attribute-sets=formal.object.properties xsl:apply-templates/ /fo:block /fo:table-cell /fo:table-row xsl:if test=$placement != 'before' fo:table-row keep-with-previous=always xsl:call-template name=formal.object.heading/ /fo:table-row /xsl:if /fo:table-body /fo:table /xsl:template xsl:template name=formal.object.heading xsl:param name=title/xsl:param fo:table-cell fo:block xsl:use-attribute-sets=formal.title.properties xsl:apply-templates select=. mode=object.title.markup/ /fo:block /fo:table-cell /xsl:template I did so, only to find that it had no effect. By no effect, I mean I looked into the FO file that was generated, and did not see any tables around my figure and captions. I then thought that perhaps my customization layer was in error somehow, so I created a separate customization layer using only the above template. Still, no effect. Finally, I modified the formal.xsl stylesheet with this template, and still did have any results. Clearly, I'm applying something incorrectly. But I'm at a loss as to where to begin. I did notice that, in the formal.xsl template, the formal.object template is very different from the above XSL markup. That is why I wondered if I was working off old material. I'm happy to provide further information, if that would be helpful. I also freely admit that I'm unsure if this is an XSL issue, appropriate for the DocBook lists, or a FOP issue. But I figured I should start somewhere. Thanks very much for any assistance, Dave Shevitz Chris Bowditch wrote: David Shevitz wrote: snip/ I understand that if I want to keep my captions with my figures in a given document, I should use a blind table. However, all the examples I see were posted around 2 years ago (granted I might be looking in the wrong place). I tried using them, but they don't seem to work. Doesnt matter that its 2 years old, there have been very few releases of FOP in that time. The blind table approach should work to keep a figure with FOP. Perhaps you should explain why it doesnt work for you, and we will try to help solve the problem. snip/ Chris - 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]
xml schema question
Hi all, i am working on a xml schema and have the following problem, maybe somebody can help me. i would like to have the follwoing elment with content: element aa/ cc/ bb/ /element The elements aa and bb are required to be there and they may occur just one time. Other sub elements of element can occur many times. Especially the order of the elements is random, so i may not use xsd:sequence. My xml schema snippet for this element: xsd:element name='element' xsd:complexType xsd:choice xsd:element ref='dd' minOccurs='0' maxOccurs='unbounded'/ xsd:element ref='cc' minOccurs='0' maxOccurs='unbounded'/ xsd:element ref='aa' minOccurs='1' maxOccurs=1/ xsd:element ref='bb' minOccurs='1' maxOccurs=1/ /xsd:choice /xsd:complexType /xsd:element Unfortunately this wont work. xmllint says that the above xml document is not valid. Has anybody any idea concerning this problem? Is it generally possible to mix elements in a complexType with different minOccurs/maxOccurs ? Greetings, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding Blind Tables for Figures
David Shevitz wrote: Thanks. I hadn't realized there have been so few updates to FOP. I noticed on a post that to implement a blind table within a template, I should add the following to my customization layer: customization layer? Isnt that a docbook term? I'm not familiar with docbook. The basic concepts of a table-caption in FOP are very simple. table-caption isnt implemented, so to keep a piece of text, either above or below a table, simply create an outer table that has no borders (aka 'blind table'). The outer table will need a single column and 2 rows. The inner table is then placed either inside the top or bottom cell and the caption in the other cell depending on whether the caption is required above or below the original table. Make sense? How to achieve this within docbook is another issue, which I suggest you ask on the docbook user list. snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xref to mediaobject or imageobject doesn't work
Thomas Richter wrote: And this: to pic: fo:basic-link internal-destination=x2label2/fo:basic-link But if I search for fo:block id= I only find x1 and not x2 ... Check again. This would be a bug in the DocBook XSLT, report it there. Note that there are still situations where the link hot spot in the PDF is off the marked text, for example in footnotes. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:inline and line-height / font-size
Sönke Ruempler wrote: I use FOP 0.20.5. I try to get a larger font with fo:inline into a fo:block, but the bigger text always overlaps with the last line. Also line-height does not work in the inline area. That's a know deficiency. Are there alternative solutions for that issue? Not really. The FOP 0.20 series wont grow the line height if there are elements exceeding the line hight set for the block (either implicitely due to the block's font-size or explicitely set using the line-height property). If you know the line breaks in advance, you can split the text in several blocks, each using the known line height. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: block with relative position?
Mike Kellstrand wrote: Is it possible to define a block or block-container and give it a relative position? Possible as in it's in the spec: yes. FOP 0.20.5 doesn't implement relative positioning though. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
external-graphic src problem
Problem - Cannot render - external-graphic src attribute Using Fop 0.20.5 - Standalone Swing application ** Application is a standalone Java Swing application. Cannot seem to get a jpg to render in my pdf unless I hardcode the complete path to the image in the external-graphic src attribute. The data in the pdf renders fine, just no image. The image file is located in the same directory as the xsl file. I have seen others post similar questions on various mailing lists, most with no real solution. Any help would be greatly appreciated. Thanks I have tried the following: (none of these render the image) If I use the complete path to the image all of these work fo:block fo:external-graphic src='' /fo:external-graphic /fo:block [ERROR] Error while creating area : Error with image URL: com\some\image\path\image.jpg (The system cannot find the path specified) and no base URL is specified also tried these src values, and some others that did not work. (The error received follows each) fo:external-graphic src='' [ERROR] Error while creating area : Error with image URL: com\some\image\path\image.jpg (The system cannot find the path specified) and no base URL is specified fo:external-graphic src='' [ERROR] Error while creating area : Error with image URL: \com\some\image\path\image.jpg (The system cannot find the path specified) and no base URL is specified fo:external-graphic src=""> [ERROR] Error while creating area : Error with image URL: \com\some\image\path\image.jpg (The system cannot find the path specified) and no base URL is specified fo:external-graphic src=""> [ERROR] Error while creating area : Error with image URL: com\some\image\path\image.jpg (The system cannot find the path specified) and no base URL is specified fo:external-graphic src=""> fo:external-graphic src=""> [ERROR] Error while creating area : Error with image URL: Connection timed out: connect and no base URL is specified Danny Gallagher Senior Software Engineer The Gainer Group 6075 The Corners Parkway Suite 116 Norcross Ga, 30092
Re: external-graphic src problem
On Jul 22, 2004, at 1:20 PM, Danny wrote: ** Application is a standalone Java Swing application. Cannot seem to get a jpg to render in my pdf unless I hardcode the complete path to the image in the external-graphic src attribute. The data in the pdf renders fine, just no image. The image file is located in the same directory as the xsl file. Danny Gallagher I've found that when referring to external graphics in a 'relative' manner, the PATH is relative to the XML file, and not the XSL file. This is probably something that should be added to the FAQ (although I don't think it's actually *asked* very often). In addition, we should probably update the Graphics page somehow to reflect this as well. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]