RE: Can't read JPEG file using JPEGReader
Ok I guess should explain, After much searching the only thing I could find to do what I want if FOP. I want to be able to read in either a gif or a jpeg and check the dimensions of it. AWT has to much overhead because it attempts to renderthe image. Whereas FOP seems just to reader the header information. As I can't guarantee that my application will run using JDK 1.4 I can't rely on JavaImage io classes. attached is a jpeg that wont read, I then went ahead and converted a working gif into a jpeg using Photoshop. It doesn't work either. If anyone has another suggestion to do what I want to do, they're mor than welcome. I know it's only using a small part of fop, and not using it for what fop was designed for, but it does work, If I can get it to read a jpeg. Regards Steve -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 April 2003 12:24 AM To: [EMAIL PROTECTED] Subject: Re: Can't read JPEG file using JPEGReader Can you please start by telling us what you're trying to do? Have you tried a different JPEG image? There are JPEG's that won't work. Maybe you just got something that's not supported. Can you post a little (!) JPEG that doesn't work? Anyway, I'm wondering why you're working with ImageReaderFactory and friends at all. On 09.04.2003 03:16:29 Steve Vanspall wrote: Hi there, I was wondering if anybody else has this problem. If I use either ImageReaderFactory.Make(null, inputstream) and actually give it the input stream of a file that I know is a JPEG, it return null. If I try reader = new JPEGReader() reader.verifySignature(null, new BufferedInputStream(FileInputStream)); it returns false, indicating that the input doesn't match the epected input of a JPEG File If I try the same with the GIFReader adn a GIF File, ti works fine ImageReaderFactory.Make(null, inputstream) where inputstream is that of a gif file return a GIfReader reader = new GIFReader() reader.verifiySignature(null, new BufferedInputStream(new FileInputStream(gifFile))); return true I can then procedd to get the dimensions of the image Can anyone suggest what I might be doing wrong, or a workaroudn for this problem Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] attachment: add_another_disabled.jpg- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: backgroud position
Looking at the spec the format would rather be: background-position=2cm 2cm The problem is that background-position is not implemented yet. See http://xml.apache.org/fop/compliance.html You didn't read the error message, did you? :-) [ERROR] property - background-position is not implemented yet. Try using a table with the first column blind just for indentation. On 09.04.2003 22:32:19 vikram.x.kondadasula wrote: I need to specify the backgorund position in co-ordinate like 110,0.It is giving me an error. I believe I am specifying the co-ord wrong.Could you i also do the same for text-align. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't read JPEG file using JPEGReader
I just did exactly the same things you did just now to see what's wrong. You know what happened? Everything worked as expected. ImageReaderFactory.Make() returns a fine JPEGImageReader and verifySignature() returns true. So, what version of FOP do you use? I was using the version from CVS which in this part of FOP should be identical with version 0.20.5rc2. On 10.04.2003 01:40:32 Steve Vanspall wrote: Ok I guess should explain, After much searching the only thing I could find to do what I want if FOP. I want to be able to read in either a gif or a jpeg and check the dimensions of it. AWT has to much overhead because it attempts to renderthe image. Whereas FOP seems just to reader the header information. As I can't guarantee that my application will run using JDK 1.4 I can't rely on JavaImage io classes. attached is a jpeg that wont read, I then went ahead and converted a working gif into a jpeg using Photoshop. It doesn't work either. If anyone has another suggestion to do what I want to do, they're mor than welcome. I know it's only using a small part of fop, and not using it for what fop was designed for, but it does work, If I can get it to read a jpeg. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
template doesn't match
Hello @ all! My xml-file is build as following: form ncr attribute Name=foo valuefoo1/value /attribute ... /ncr /form in my stylesheet I've created templates like this: xsl:template match=ncr fo:table-row xsl:apply-templates/ /fo: table-row /xsl:template xsl:template match=[EMAIL PROTECTED]'foo'] fo:table-cell fo:block padding=1pt xsl:value-ofselect=@Name/ /fo:block fo:block padding-top=3pt padding-left=1pt xsl:value-of select=value/ /fo:block /fo:table-cell /xsl:template in fo:root I've created a page-master and a sequence with a table (plus table-column and table-body). My problem: the template that matches the node ncr gets never called. Has anybody an idea? Thanx in advance! suse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: template doesn't match
Title: RE: template doesn't match Could it be that you don't have a template to match the form elemant? Regards, Hans Kappert Co-maker B.V. Postbus 24006 2490 AA 's Gravenhage www.co-maker.nl tel: +31(0)70 - 317 80 40 fax: +31(0)70 - 317 80 42 PLEASE NOTE: The information contained in this electronic mail message is privileged and confidential, and is intended only for use of the addressee. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it. -Original Message- From: Todtenhaupt, Susann [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 10, 2003 10:09 To: '[EMAIL PROTECTED]' Subject: template doesn't match Hello @ all! My xml-file is build as following: form ncr attribute Name=foo valuefoo1/value /attribute ... /ncr /form in my stylesheet I've created templates like this: xsl:template match=ncr fo:table-row xsl:apply-templates/ /fo: table-row /xsl:template xsl:template match=[EMAIL PROTECTED]'foo'] fo:table-cell fo:block padding=1pt xsl:value-ofselect=@Name/ /fo:block fo:block padding-top=3pt padding-left=1pt xsl:value-of select=value/ /fo:block /fo:table-cell /xsl:template in fo:root I've created a page-master and a sequence with a table (plus table-column and table-body). My problem: the template that matches the node ncr gets never called. Has anybody an idea? Thanx in advance! suse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: template doesn't match
Title: RE: template doesn't match hello hans! my first template that embeds fo:root matches the root node of my xml-file in other words form. the third template works, xsl:template match=[EMAIL PROTECTED]'foo'] fo:table-cell fo:block padding=1pt xsl:value-ofselect=@Name/ /fo:block fo:block padding-top=3pt padding-left=1pt xsl:value-of select=value/ /fo:block /fo:table-cell /xsl:template but the processor doesn't match my second one below. xsl:template match=ncr fo:table-row xsl:apply-templates/ /fo: table-row /xsl:template -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 10:10 An: [EMAIL PROTECTED] Betreff: RE: template doesn't match Could it be that you don't have a template to match the form elemant? Regards, Hans Kappert Co-maker B.V. Postbus 24006 2490 AA 's Gravenhage www.co-maker.nl tel: +31(0)70 - 317 80 40 fax: +31(0)70 - 317 80 42 PLEASE NOTE: The information contained in this electronic mail message is privileged and confidential, and is intended only for use of the addressee. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it. -Original Message- From: Todtenhaupt, Susann [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 10, 2003 10:09 To: '[EMAIL PROTECTED]' Subject: template doesn't match Hello @ all! My xml-file is build as following: form ncr attribute Name=foo valuefoo1/value /attribute ... /ncr /form in my stylesheet I've created templates like this: xsl:template match=ncr fo:table-row xsl:apply-templates/ /fo: table-row /xsl:template xsl:template match=[EMAIL PROTECTED]'foo'] fo:table-cell fo:block padding=1pt xsl:value-ofselect=@Name/ /fo:block fo:block padding-top=3pt padding-left=1pt xsl:value-of select=value/ /fo:block /fo:table-cell /xsl:template in fo:root I've created a page-master and a sequence with a table (plus table-column and table-body). My problem: the template that matches the node ncr gets never called. Has anybody an idea? Thanx in advance! suse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
UNSUSCRIBE
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
table-column width
Hello! Is it possible to allocate a column-width a value like 100%? inline-progression-dimension fop does not support, does it? Thanx! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: template doesn't match
From: Todtenhaupt, Susann [EMAIL PROTECTED] my first template that embeds fo:root matches the root node of my xml-file in other words form. This is a pure XSLT question and would receive better answers on a XSLT list. So you have a template that matches the root element form, but does that have an xsl:apply-templates to ensure child elements of the root node are also processed? _ Hotmail messages direct to your mobile phone http://www.msn.co.uk/mobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: table-column width
From: Todtenhaupt, Susann [EMAIL PROTECTED] Is it possible to allocate a column-width a value like 100%? inline-progression-dimension fop does not support, does it? Currently FOP only supports tables with fixed (pre-determined) column woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: template doesn't match
I've solved this problem... :-( I turned the lower case letters into capital letters (of the word ncr) and then it worked. But I can't really retrace why... -Ursprüngliche Nachricht- Von: Chris Bowditch [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 12:17 An: [EMAIL PROTECTED] Betreff: Re: AW: template doesn't match From: Todtenhaupt, Susann [EMAIL PROTECTED] my first template that embeds fo:root matches the root node of my xml-file in other words form. This is a pure XSLT question and would receive better answers on a XSLT list. So you have a template that matches the root element form, but does that have an xsl:apply-templates to ensure child elements of the root node are also processed? _ Hotmail messages direct to your mobile phone http://www.msn.co.uk/mobile - 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: table-column width
This is not true. FOP only supports Fixed table-widths, but columns widths can be set relative. You can do this by setting: column-width=proportional-column-width(1) If you have to columns with a 25%, 75% width you can set: fo:table-column column-number=1 column-width=proportional-column-width(1)/ fo:table-column column-number=2 column-width=proportional-column-width(3)/ Regards, Harm Kok Chris Bowditch wrote: From: Todtenhaupt, Susann [EMAIL PROTECTED] Is it possible to allocate a column-width a value like 100%? inline-progression-dimension fop does not support, does it? Currently FOP only supports tables with fixed (pre-determined) column woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile - 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]
AW: page break in table row
Hi, try fo:table-row keep-together=always Greetz Carsten -Ursprüngliche Nachricht- Von: Bargel, Britta [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 14:55 An: '[EMAIL PROTECTED]' Betreff: page break in table row Hello, I want the contents of my table rows always to be on the same page. Sometimes the contents of one or more table cells is two or more lines long. When a table row with this content is at the end of the page it happens that the first line of the content is on one page and the rest on the other. How can I avoid this? Britta - 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]
Batik and FOP
FOP version 0.20.4 uses what version of Batik ? I have downloaded batik-1.1.1 and I also downloaded fop-0.20.4 I am using them together, yet I am getting runtime errors, like NoSuchMethodExceptions. There must be a mismatch.? Does fop-0.20.5rc2 and batik-1.1.1 play nice together ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Batik and FOP
hi isn't fop delivered with batik.jar in it's lib directory? Leet, Ethan C wrote: || FOP version 0.20.4 || || uses what version of Batik ? || || || I have downloaded batik-1.1.1 and I also downloaded fop-0.20.4 || || I am using them together, yet I am getting runtime errors, like || NoSuchMethodExceptions. || || || There must be a mismatch.? || || Does fop-0.20.5rc2 and batik-1.1.1 play nice together ? || || || || - || 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]
AW: page break in table row
Thank you. It works. I had tried it before with keep-together.within-page=always but it seems FOP doesn't work with this. Greets Britta -Ursprüngliche Nachricht- Von: Hau, Carsten [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 15:02 An: '[EMAIL PROTECTED]' Betreff: AW: page break in table row Hi, try fo:table-row keep-together=always Greetz Carsten -Ursprüngliche Nachricht- Von: Bargel, Britta [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 14:55 An: '[EMAIL PROTECTED]' Betreff: page break in table row Hello, I want the contents of my table rows always to be on the same page. Sometimes the contents of one or more table cells is two or more lines long. When a table row with this content is at the end of the page it happens that the first line of the content is on one page and the rest on the other. How can I avoid this? Britta - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Batik and FOP
Yes it is. Which version ? -Original Message- From: Myriam Delperier [mailto:[EMAIL PROTECTED] Sent: Thursday, April 10, 2003 9:15 AM To: [EMAIL PROTECTED] Subject: Re: Batik and FOP hi isn't fop delivered with batik.jar in it's lib directory? Leet, Ethan C wrote: || FOP version 0.20.4 || || uses what version of Batik ? || || || I have downloaded batik-1.1.1 and I also downloaded fop-0.20.4 || || I am using them together, yet I am getting runtime errors, like || NoSuchMethodExceptions. || || || There must be a mismatch.? || || Does fop-0.20.5rc2 and batik-1.1.1 play nice together ? || || || || - || 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Batik and FOP
There have been changes since then, so 1.1.1 will not work with FOP 0.20.5rc2. FOP 0.20.5rc2 is distributed with Batik 1.5beta4. It will probably work with the newer Batik 1.5beta5 but you won't be able to compile FOP with it. FOP 0.20.5 will also support Batik 1.5beta5. On 10.04.2003 14:53:23 Leet, Ethan C wrote: FOP version 0.20.4 uses what version of Batik ? I have downloaded batik-1.1.1 and I also downloaded fop-0.20.4 I am using them together, yet I am getting runtime errors, like NoSuchMethodExceptions. There must be a mismatch.? Does fop-0.20.5rc2 and batik-1.1.1 play nice together ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: table-column width
Hi I find fo:table-column column-width=proportional-column-width(n)/ (n is numeric) is well supported and useful (FOP-0.20.4 and FOP-0.20.5rc). This has the effect of allocating percentage widths as required. Is this helpful? John Marshall -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: 10 April 2003 11:19 To: [EMAIL PROTECTED] Subject: Re: table-column width From: Todtenhaupt, Susann [EMAIL PROTECTED] Is it possible to allocate a column-width a value like 100%? inline-progression-dimension fop does not support, does it? Currently FOP only supports tables with fixed (pre-determined) column woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Accurate Software Ltd The Courtyard, Denmark Street, Wokingham, RG40 2AZ, UK. Tel: +44 (0)118 977 3889 Fax +44 (0)118 977 1260 Web: http://www.accuratesoftware.com The information in this email is confidential and privileged and is intended only for the use of the individual or entity listed above. If you are neither the intended individual, or entity listed above, nor the person responsible for the delivery of this email to the intended recipients, you are hereby notified that any unauthorised distribution, copying or use of this email is prohibited. If you have received this email in error, please notify the Accurate system manager at [EMAIL PROTECTED] or on +44 (0)118 977 3889. The views expressed in this communication may not necessarily be the views held by the Accurate Group. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Graphics SVG
Hello, I am using fo:block break-before=page fo:instream-foreign-object svg xmlns=http://www.w3.org/2000/svg; width=192 height=600 xml:space=preserve ... /svg /fo:instream-foreign-object /fo:block this element it include a SVG graphic. I want the graphic on one page so the graphic will consume the entire page. Yet, when I view the PDF, I only see the top left corner of the graphic. How can I specify the size ? Why don't I see the entire graphic ? Doesn't the fo:block size to the entire page if it can ? Thank you .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Page end
Title: Nachricht Hi, you can set a marker for that purpose. The value of the marker is the item count, so each appearance of the item increments the count (=sets a new marker, each of the same type). For displaying the item count, retrieve the first and last marker in the (current) page, compute the difference and you have, what you are looking for. Hope, this helps and is not too abstract, Markus -Ursprüngliche Nachricht-Von: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 16:02An: [EMAIL PROTECTED]Betreff: Page end Hello, Is there a way by which I can figure out the end of a page. I am generating a PDF file from an XML and need to print out item totals at the bottom of a page. For instance if there are 10 items on the first and 7 on the next. The first page should print out "Number of items on this page = 10".. TIA Prabhat
AW: Graphics SVG
Hello, as far as I know, the size can't be bigger than the region where you put it. What I did, to put a graphic on an entire page is: I specified a page master without margins, and put the image as background-image on the flow-block fo:simple-page-master page-width=210mm master-name=A4 page-height=297mm margin-right=0cm margin-left=0mm fo:region-start / fo:region-body background-image=C:/ch_eprint/FOP/tests/svg_layer/img/layer1.svg / fo:region-before / fo:region-after / /fo:simple-page-master I think you can find a similar way to solve your problem. Greetz Carsten -Ursprüngliche Nachricht- Von: Leet, Ethan C [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 16:00 An: '[EMAIL PROTECTED]' Betreff: Graphics SVG Hello, I am using fo:block break-before=page fo:instream-foreign-object svg xmlns=http://www.w3.org/2000/svg; width=192 height=600 xml:space=preserve ... /svg /fo:instream-foreign-object /fo:block this element it include a SVG graphic. I want the graphic on one page so the graphic will consume the entire page. Yet, when I view the PDF, I only see the top left corner of the graphic. How can I specify the size ? Why don't I see the entire graphic ? Doesn't the fo:block size to the entire page if it can ? Thank you .. - 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: Graphics SVG
You can wrap your svg element with another svg element where you specify the dimensions of the graphic: svg xmlns=http://www.w3.org/2000/svg; width=10cm height=8cm svg xmlns=http://www.w3.org/2000/svg; width=192 height=600 xml:space=preserve [..] /svg /svg On 10.04.2003 16:00:09 Leet, Ethan C wrote: Hello, I am using fo:block break-before=page fo:instream-foreign-object svg xmlns=http://www.w3.org/2000/svg; width=192 height=600 xml:space=preserve ... /svg /fo:instream-foreign-object /fo:block this element it include a SVG graphic. I want the graphic on one page so the graphic will consume the entire page. Yet, when I view the PDF, I only see the top left corner of the graphic. How can I specify the size ? Why don't I see the entire graphic ? Doesn't the fo:block size to the entire page if it can ? Thank you .. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
@jeremias
Sorry, that was my fault. I thought I was sending to fop-users... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Page end
Title: Nachricht excellent, this helps. Thank you. -Original Message-From: "Müller, Markus" [mailto:[EMAIL PROTECTED]Sent: Thursday, April 10, 2003 10:14 AMTo: [EMAIL PROTECTED]Subject: AW: Page end Hi, you can set a marker for that purpose. The value of the marker is the item count, so each appearance of the item increments the count (=sets a new marker, each of the same type). For displaying the item count, retrieve the first and last marker in the (current) page, compute the difference and you have, what you are looking for. Hope, this helps and is not too abstract, Markus -Ursprüngliche Nachricht-Von: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 16:02An: [EMAIL PROTECTED]Betreff: Page end Hello, Is there a way by which I can figure out the end of a page. I am generating a PDF file from an XML and need to print out item totals at the bottom of a page. For instance if there are 10 items on the first and 7 on the next. The first page should print out "Number of items on this page = 10".. TIA Prabhat
Extra space after cross-reference
I am including a template for cross-references in my stylesheet. The template has the intended result with one exception: it inserts a space when the text following the cross-reference is a period. Here is what the output looks like: For more information, see Getting Started on page 2 . I want the output to be For more information, see Getting Started on page 2. Any ideas on how to fix this would be appreciated. SOURCE FO xsl:template match=a xsl:element name=fo:inline xsl:element name=fo:basic-link xsl:attribute name=internal-destination xsl:value-of select=@idref / /xsl:attribute xsl:value-of select=document(@idref)/cnt-elm/title/ xsl:text on page /xsl:text xsl:element name=fo:page-number-citation xsl:attribute name=ref-id xsl:value-of select=@idref / /xsl:attribute /xsl:element /xsl:element /xsl:element /xsl:template - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extra space after cross-reference
James, This is just a guess, but perhaps you've included white-space where there doesn't need to be. white-space can be a bit tricky to manage. Although excess white-space is ignored, an extra [carriage-return] or [tab] in the wrong place may not be ignored (particularly if there's no white-space around it may produce unexpected (or unwanted) results. I notice that you've got a couple of extra [carriage-returns] between some elements. Try removing them. If that doesn't work, try putting all of the template on one line: xsl:template match=axsl:element name=fo:inlinexsl:element name=fo:basic-linkxsl:attribute name=internal-destinationxsl:value-of select=@idref //xsl:attributexsl:value-of select=document(@idref)/cnt-elm/title/xsl:texton page /xsl:textxsl:element name=fo:page-number-citationxsl:attribute name=ref-idxsl:value-of select=@idref //xsl:attribute/xsl:element/xsl:element/xsl:element/xsl:template I'm guessing this'll solve it. Also, I don't see the . anywhere. Since this template is being called from somewhere else, it might help to have that portion of your XSL-FL as well. Good luck! Web Maestro Clay jamesl wrote: I am including a template for cross-references in my stylesheet. The template has the intended result with one exception: it inserts a space when the text following the cross-reference is a period. Here is what the output looks like: For more information, see Getting Started on page 2 . I want the output to be For more information, see Getting Started on page 2. Any ideas on how to fix this would be appreciated. SOURCE FO xsl:template match=a xsl:element name=fo:inline xsl:element name=fo:basic-link xsl:attribute name=internal-destination xsl:value-of select=@idref / /xsl:attribute xsl:value-of select=document(@idref)/cnt-elm/title/ xsl:text on page /xsl:text xsl:element name=fo:page-number-citation xsl:attribute name=ref-id xsl:value-of select=@idref / /xsl:attribute /xsl:element /xsl:element /xsl:element /xsl:template -- 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: Extra space after cross-reference
xsl:text is useful exactly because it retains whitespace. For example, because you wrote xsl:text on page /xsl:text instead of xsl:texton page/xsl:text you will always see the extra linebreaks, tabs and spaces used for indenting in the output (check it!), exactly as you put them in the element content. Probably, you are inserting these nefarious spaces while formating the number or placing the period. If you are emmiting any whitespace (spaces, tabs or linebreaks) between the number and the period, they will be rendered by the browser, because the normalization that occurs during rendering only reduces multiple whitespace to a single space -- it never removes everything. = Marcelo Jaccoud Amaral Petrobrás (http://www.petrobras.com.br) mailto:[EMAIL PROTECTED] voice: +55 21 2534-3485 fax: +55 21 2534-1809 = There are only 10 kinds of people in the world: those who understand binary and those who don't. jamesl [EMAIL PROTECTED]Para: [EMAIL PROTECTED] tware.com cc: Assunto: Extra space after cross-reference 10/04/2003 11:57 Favor responder a fop-user I am including a template for cross-references in my stylesheet. The template has the intended result with one exception: it inserts a space when the text following the cross-reference is a period. Here is what the output looks like: For more information, see Getting Started on page 2 . I want the output to be For more information, see Getting Started on page 2. Any ideas on how to fix this would be appreciated. SOURCE FO xsl:template match=a xsl:element name=fo:inline xsl:element name=fo:basic-link xsl:attribute name=internal-destination xsl:value-of select=@idref / /xsl:attribute xsl:value-of select=document(@idref)/cnt-elm/title/ xsl:text on page /xsl:text xsl:element name=fo:page-number-citation xsl:attribute name=ref-id xsl:value-of select=@idref / /xsl:attribute /xsl:element /xsl:element /xsl:element /xsl:template - 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: attribute border-style doesn't work
It looks like I err'd. It wasn't the border-style=dashed that works, but rule-style=dashed that works (in PDF only--not AWT) in 0.20.4: fo:leader leader-pattern=rule leader-length=100% rule-style=dashed/ don't bother me I'm eating crow Sorry for any confusion. /don't bother me I'm eating crow Web Maestro Clay Clay Leeds wrote: Forgive my eavesdropping, but in my experience with FOP, I've seen that when outputting to -pdf, other border-styles work. In particular, I've got dashed working, and I believe dotted works as well. However, I noticed when outputting to -awt/-print it turns into a solid line. This is fine for me. If one of my clients wants it to look pretty, they'll make a PDF first, and then print that. Christian Geisert wrote: Todtenhaupt, Susann wrote: Hello! There're several values for the attribute border-style when designing a table-cell with xsl:fo. For example dotted, dashed etc. but it doesn't work. There's no aftereffect if this is setted... fo:table-cell border-width=0.5mm border-style=dotted fo:block font-size=14pt font-weight=boldName/fo:block /fo:table-cell What's the fault? Unimplemented feature (only solid works) Christian -- 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: tab set
I would suggest using fo:block start-indent=n !-- where n is your indent -- !-- content1 -- /fo:block fo:block start-indent=n !-- where n is your indent -- !-- content2 -- /fo:block If you want to indent a table, I think the easiest way is to make an empty column at the edge. Mike -Original Message- From: Zmitko, Jan [mailto:[EMAIL PROTECTED] Sent: Thu 4/10/2003 10:47 AM To: [EMAIL PROTECTED] Cc: Subject: tab set Hello, is it possible to set a tab within a block or another elemnt. I want to indent text, which is in two lines. The indent Text have to start a the same position in both lines. Insert #160; does not help, because there is always displacement depentent of the letter before. Thanks for any answers. Jan Zmitko Unternehmensbereich Private Kunden und Geschftskunden Zentrale Bereich Multikanal Services Referat Direct-/Online Banking Postadr.: Jrgen-Ponto-Platz 1, 60301 Frankfurt Hauspost: UB PG Z IT EC, BL.64-66, 3.OG Tel.: (069) 263-57925 Fax: (069) 263-10357 Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: page break in table row
It looks like the keep-together property should be partially supported. http://xml.apache.org/fop/compliance.html#fo-property-keep-together -Original Message- From: Bargel, Britta [mailto:[EMAIL PROTECTED] Sent: Thu 4/10/2003 8:17 AM To: '[EMAIL PROTECTED]' Cc: Subject: AW: page break in table row Thank you. It works. I had tried it before with keep-together.within-page=always but it seems FOP doesn't work with this. Greets Britta -Ursprngliche Nachricht- Von: Hau, Carsten [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 15:02 An: '[EMAIL PROTECTED]' Betreff: AW: page break in table row Hi, try fo:table-row keep-together=always Greetz Carsten -Ursprngliche Nachricht- Von: Bargel, Britta [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 14:55 An: '[EMAIL PROTECTED]' Betreff: page break in table row Hello, I want the contents of my table rows always to be on the same page. Sometimes the contents of one or more table cells is two or more lines long. When a table row with this content is at the end of the page it happens that the first line of the content is on one page and the rest on the other. How can I avoid this? Britta - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: template doesn't match
Todtenhaupt, Susann wrote: I've solved this problem... :-( I turned the lower case letters into capital letters (of the word ncr) and then it worked. But I can't really retrace why... XML is case sensitive. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Batik and FOP
Jeremias Maerki wrote: FOP 0.20.5rc2 is distributed with Batik 1.5beta4. No, it's a CVS snapshot with an API change making it incompatible to 1.5beta4 and all previous Batik releases (the Batik people have a habit of changing public APIs even though the release is already labled beta, but then, it's not even well defined what a public API of a SVG processor should look like). It should work with 1.5beta5 though. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]