Re: getting rid of "collapsed border painting" warning
Ok, so now that we know that you're really on FOP Trunk and not FOP 0.20.5 (it's always good to tell what version you're working on!), please send a full FO sample file that allows us to reproduce your problem with the warnings. On 14.10.2005 00:12:40 Daniel Brownell wrote: > I added border-collapse="separate" to my main table, and it crashed. > > BUT > BUT... > > I added it to my table-cells that have row-spans AND it didn't fix > the warnings, but it fixed my extra-half row problem posted below! > > Thanks! > > > -Original Message- > From: Jeremias Maerki [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 13, 2005 2:45 PM > To: fop-users@xmlgraphics.apache.org > Subject: Re: getting rid of "collapsed border painting" warning > > Specify border-collapse="separate" on fo:table and it'll go away. > border-collapse="collapse" is not implemented in FOP Trunk, yet. > > On 13.10.2005 23:08:20 Daniel Brownell wrote: > > Hi there, > > > > > > > > Below is an excerpt from my log file, and I was wondering if anyone > > knows how I can disable this warning? I added > > border-collapse="collapse" to every spanned table cell, and it doesn't > > help. Each time I create a report, my log file gets 70K of these > > warnings, which is bad. > > > > > > > > Thanks, > > > > Dan > > > > > > > > > > > > Oct 13, 2005 1:41:43 PM > > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > > > WARNING: TODO Add collapsed border painting for spanned cells > > > > Oct 13, 2005 1:41:43 PM > > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > > > WARNING: TODO Add collapsed border painting for spanned cells > > > > Oct 13, 2005 1:41:43 PM > > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > > > WARNING: TODO Add collapsed border painting for spanned cells > > > > Oct 13, 2005 1:41:43 PM > > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > > > WARNING: TODO Add collapsed border painting for spanned cells > > > > Oct 13, 2005 1:41:43 PM > > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > > > WARNING: TODO Add collapsed border painting for spanned cells > > > > Oct 13, 2005 1:41:43 PM > > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > > > WARNING: TODO Add collapsed border painting for spanned cells > > > > Oct 13, 2005 1:41:43 PM > > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > > > WARNING: TODO Add collapsed border painting for spanned cells Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error compiling 0.20.5 from source
I'm getting an error which may or may not be critical, when compiling FOP 0.20.5 from source. It manifests itself as the error "no protocol: hyphenation.dtd", which has been seen before on the mailing list but with no real solution. I went and modified the FOP source code to make it include enough error output to work with, and it looks like this: org.apache.fop.layout.hyphenation.HyphenationException: no protocol: hyphenation.dtd at org.apache.fop.layout.hyphenation.PatternParser.parse(PatternParser.java:115) at org.apache.fop.layout.hyphenation.HyphenationTree.loadPatterns(HyphenationTree.java:143) at org.apache.fop.tools.anttasks.SerializeHyphPattern.buildPatternFile(SerializeHyphPattern.java:137) at org.apache.fop.tools.anttasks.SerializeHyphPattern.processFile(SerializeHyphPattern.java:126) at org.apache.fop.tools.anttasks.SerializeHyphPattern.execute(SerializeHyphPattern.java:77) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Caused by: java.net.MalformedURLException: no protocol: hyphenation.dtd at java.net.URL.(URL.java:537) at java.net.URL.(URL.java:434) at java.net.URL.(URL.java:383) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) Is this just a bug in Xerces? Does anyone have an easy way around it? Failing that, I can just cross my fingers that FOP still works after this failure, because the failure didn't prevent the build completing. Daniel -- Daniel Noll NUIX Pty Ltd Level 8, 143 York Street, Sydney 2000 Phone: (02) 9283 9010 Fax: (02) 9283 9020 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: faulty number-rows-spanned?
As noted in my post above, Adding border-collapse=”separate” to the table cells with spans fixed the problem!
RE: getting rid of "collapsed border painting" warning
I added border-collapse="separate" to my main table, and it crashed. BUT BUT... I added it to my table-cells that have row-spans AND it didn't fix the warnings, but it fixed my extra-half row problem posted below! Thanks! -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, October 13, 2005 2:45 PM To: fop-users@xmlgraphics.apache.org Subject: Re: getting rid of "collapsed border painting" warning Specify border-collapse="separate" on fo:table and it'll go away. border-collapse="collapse" is not implemented in FOP Trunk, yet. On 13.10.2005 23:08:20 Daniel Brownell wrote: > Hi there, > > > > Below is an excerpt from my log file, and I was wondering if anyone > knows how I can disable this warning? I added > border-collapse="collapse" to every spanned table cell, and it doesn't > help. Each time I create a report, my log file gets 70K of these > warnings, which is bad. > > > > Thanks, > > Dan > > > > > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > Jeremias Maerki - 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: getting rid of "collapsed border painting" warning
Specify border-collapse="separate" on fo:table and it'll go away. border-collapse="collapse" is not implemented in FOP Trunk, yet. On 13.10.2005 23:08:20 Daniel Brownell wrote: > Hi there, > > > > Below is an excerpt from my log file, and I was wondering if anyone > knows how I can disable this warning? I added > border-collapse="collapse" to every spanned table cell, and it doesn't > help. Each time I create a report, my log file gets 70K of these > warnings, which is bad. > > > > Thanks, > > Dan > > > > > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > > Oct 13, 2005 1:41:43 PM > org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas > > WARNING: TODO Add collapsed border painting for spanned cells > Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting rid of "collapsed border painting" warning
Hi there, Below is an excerpt from my log file, and I was wondering if anyone knows how I can disable this warning? I added border-collapse="collapse" to every spanned table cell, and it doesn’t help. Each time I create a report, my log file gets 70K of these warnings, which is bad. Thanks, Dan Oct 13, 2005 1:41:43 PM org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas WARNING: TODO Add collapsed border painting for spanned cells Oct 13, 2005 1:41:43 PM org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas WARNING: TODO Add collapsed border painting for spanned cells Oct 13, 2005 1:41:43 PM org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas WARNING: TODO Add collapsed border painting for spanned cells Oct 13, 2005 1:41:43 PM org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas WARNING: TODO Add collapsed border painting for spanned cells Oct 13, 2005 1:41:43 PM org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas WARNING: TODO Add collapsed border painting for spanned cells Oct 13, 2005 1:41:43 PM org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas WARNING: TODO Add collapsed border painting for spanned cells Oct 13, 2005 1:41:43 PM org.apache.fop.layoutmgr.table.TableCellLayoutManager addAreas WARNING: TODO Add collapsed border painting for spanned cells
RE: faulty number-rows-spanned?
Well, I don’t think you need all this, but here’s a small xml sample. The students tag just does an apply-templates. -Dan >Daniel: >Excuse my laziness, but could you post some sample XML so I can easily try this. >Thanks, >Lou > Hi there, > > I looked back thru to Jan 2004 and couldn't find this question, so I > will ask it. > > This template match below is meant to print out two rows per > student, where the first 2 columns use number-rows-spanned="2", and > the second 2 have two rows. > > My problem is that under the very last row of each page, i get an > ugly half-row (an extra blank 2 rows under the columns that use > number-rows-spanned="2"). > > Yes, surrounded this with a table & body. It's not an empty student > element that's messing it up. AntennaHouse draws it correctly, so > it must be a FOP row-span issue. > > Can anyone please help me? > Thanks > Daniel Brownell > > > > > > > solid > 1pt > > > > width="1pt" border-style="solid"> > > > > > > > width="1pt" border-style="solid"> > > > > > > > > > > > > > > > > solid > 1pt > > > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: marking some elements by same @id
(Jay's suggestion just rolled in --I'm not 100% sure, but I think FOP will complain if it encounters attributes in the fo: namespace that are not properties as defined in the Rec. FOP 0.20.5 may turn out to be forgiving... Just to be on the safe side, I'd use a separate namespace.) - I hadn't thought of that because I always do all my processing against some other XML dialect and generate FO as the last step. A separate namespace would be the way to go, for sure. Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: marking some elements by same @id
On Oct 13, 2005, at 17:33, Thomas Winkler wrote: Hi, If I want to remove the "Position", then the following template did that for me : Luckily, Xalan does not complain about the non-unique values of id. However; if I want the "Position" in the table then FOP will correctly complain "... id values must be unique in document." My question : is there any possibility to mark several elements with the same attribute name so that I can run such a "remove-template" ? How about using 'id=posXXX', where the XXX value is the result from generate-id()? In that case, you could have a template similar to what you have now: Another option would be to introduce a custom namespace for that, and define the 'id' attribute in that namespace, so the unique-constraint won't apply (since it's no longer the default XML 'id' attribute). (Jay's suggestion just rolled in --I'm not 100% sure, but I think FOP will complain if it encounters attributes in the fo: namespace that are not properties as defined in the Rec. FOP 0.20.5 may turn out to be forgiving... Just to be on the safe side, I'd use a separate namespace.) HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: marking some elements by same @id
The fix for this is to not use "id". You should use an attribute named "id" only when you plan to assign a unique identifier to that attribute. Otherwise, lots of XML- and XSL-based systems (including but certainly not limited to FOP) will break. So, use some other name instead: "myid", "groupid", "tableid", "Oscar", whatever. Jay Bryant Bryant Communication Systems (presently consulting at Synergistic Solution Technologies) Thomas Winkler <[EMAIL PROTECTED]> 10/13/2005 10:33 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject marking some elements by same @id Hello, I am designing a table with the trunk version of FOP. The table must be configurable. For example : it depends on the order if the "Position" should appear or not. So I created a xsl-fo stylesheet like this : Artikel Position Datum ... If I want to remove the "Position", then the following template did that for me : Luckily, Xalan does not complain about the non-unique values of id. However; if I want the "Position" in the table then FOP will correctly complain "... id values must be unique in document." My question : is there any possibility to mark several elements with the same attribute name so that I can run such a "remove-template" ? Or : how can I turn off the unique-id checking of FOP ? Thanks in advance ! Thomas ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - 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]
marking some elements by same @id
Hello, I am designing a table with the trunk version of FOP. The table must be configurable. For example : it depends on the order if the "Position" should appear or not. So I created a xsl-fo stylesheet like this : Artikel Position Datum ... If I want to remove the "Position", then the following template did that for me : Luckily, Xalan does not complain about the non-unique values of id. However; if I want the "Position" in the table then FOP will correctly complain "... id values must be unique in document." My question : is there any possibility to mark several elements with the same attribute name so that I can run such a "remove-template" ? Or : how can I turn off the unique-id checking of FOP ? Thanks in advance ! Thomas ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rendering empty fo:block objects
Not that this is the best solution, how about setting the white-space-collapse to false (I'm running 0.20.3): -Lou "Oosterbaan, Douglas S. (LNG-DAY)" <[EMAIL PROTECTED]> wrote on 10/13/2005 10:42:02: > Are empty objects ignored by fop0.20.5? In the following > snippet of FO I inserted 6 empty blocks between two test strings > and they don't seem to get rendered. I can easily use space-after > or insert newlines to get the desired rendering, but I was just > curious if this by design or is this considered an unresolved issue in > fop0.20.5? Below is some sample fo: > > TEST STRING 1 > > />TEST STRING 2 > > > Thanks. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
RE: Rendering empty fo:block objects
Thank you. That seems to be the case. Even by inserting a simple space character in the block it defaults to a pt > 0, but when empty it seems to default to 0pt like you said. Thanks. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Thursday, October 13, 2005 10:45 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Rendering empty fo:block objects I think, as long as they are empty, they simply have a 0pt height. Oosterbaan, Douglas S. (LNG-DAY) a écrit : >Are empty objects ignored by fop0.20.5? In the following >snippet of FO I inserted 6 empty blocks between two test strings >and they don't seem to get rendered. I can easily use space-after >or insert newlines to get the desired rendering, but I was just >curious if this by design or is this considered an unresolved issue in >fop0.20.5? Below is some sample fo: > >TEST STRING 1 >/>TEST STRING 2 > > >Thanks. > > >- >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: how to pass to fop user and password needed for basic authentication to get image resource from Notes database
BTW, the redesigned FOP will make things like that easier. You will have the ability to plug in a URIResolver to manually fetch an InputStream to a resource based on a URI. This will make work-arounds like David's servlet unnecessary. On the other side it's strange that wget is able to get the image with the uid/pwd encoded in the URL and FOP is not. Maybe FOP 0.20.5 does something bad with the URL. It would be great if someone could check this case with FOP Trunk so we can fix any problems like that for the next release. On 13.10.2005 16:26:33 David Delbecq wrote: > Then i guess your solution is to write a servlet which access files > using the api and get credits token lik this: > > http://domino.example.com/myServlet?doc=/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif&user=someUser&pass=somePass > > If image tag of .fo were to use the InputSource schem of xml document, > you could have created an Inputsource which > manage the authentification. Unfortunately, as i discovered some time > before, fop does not use inputsource to load pictures. > (really, it uses a simple URL()) > I think this will be handled in next version, but if you followed this > maling list, lots of things will change in next version, > so it might not be availbe for a few time :) > Ha yeah, you can also try to add your custom protocol to URL (like > dominoContent://) but a mpretty sure you don't even want > to try as it is jvm-wide modification :) > > [EMAIL PROTECTED] a écrit : > > > > > Yes, I did try this notation and the error came up the same (Could not > > load external SVG: ... error) > > > > If I try to use such url in a web browser for example, when first > > requesting this url a "page not found" is displayed and all next > > responses to this > > same request retrieve an empty page (there is some html but the > > tag is empty so blank page is displayed). > > > > I also noticed that with using wget with this type of url, the image > > is retrieved from the server correctly. > > > > Thank you David for the suggestion, I was kind of sad to notice that > > this doesn't work as I thought it would. > > > > > > > > > > *David Delbecq <[EMAIL PROTECTED]>* > > > > 13.10.2005 15:33 > > Please respond to > > fop-users@xmlgraphics.apache.org > > > > > > > > To > > fop-users@xmlgraphics.apache.org > > cc > > > > Subject > > Re: how to pass to fop user and password needed for basic > > authentication to get image resource from Notes database > > > > > > > > > > > > > > > > > > > > Did you try this kind of url? > > http://user:[EMAIL > > PROTECTED]/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif > > [EMAIL PROTECTED] a écrit : > > > > > > > > I will describe my situation. > > > > > > I have an application server (Domino) and on it running a web > > > application. > > > > > > On this web application users have a basic editor (uses xhtml) to > > > input basic text/formats/tables and upload images that are included in > > > the document > > > > > > > > > Images are uploaded in notes database and url is passed into this > > > editor (xml source for this is standard html like > > > > src="http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif"; > > > />) and I parse it like this: > > > > > > part of xsl file: > > > . > > > > > > > > > > > > > > > > > > > > name="width"> > > select="@width"/> > > select="concat(@width, > > > 'px')"/> > > > > > > > > > > > name="height"> > > select="@height"/> > > select="concat(@height, > > > 'px')"/> > > > > > > > > > > > > > > > > > > Users have a possibility to create pdf of created document from this > > > application. All works fine - I generate xml on demand and transform > > > it with xsl file that is prepared. > > > > > > The problem is when transformer fetches image from database I do not > > > know how to pass username and password for authentication and the > > > process that requests the image now gets a Login Page instead (html > > > response) and when trying to include it into PDF an error that is > > > printed in the log: > > > > > > [ERROR] Could not load external SVG: White spaces are required between > > > publicId and systemId. > > > [ERROR] Error while creating area : No ImageReader for this type of > > > image > > > > > (http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif) > > > > > > > > > So my question is: > > > Is there a way to set username and password for fop to use when > > > fetching image from publicly not accessible database resources? > > > > > > Thank you all for helping. > > > > > > Jelka Jeremias Maerki --
Re: Rendering empty fo:block objects
I think, as long as they are empty, they simply have a 0pt height. Oosterbaan, Douglas S. (LNG-DAY) a écrit : >Are empty objects ignored by fop0.20.5? In the following >snippet of FO I inserted 6 empty blocks between two test strings >and they don't seem to get rendered. I can easily use space-after >or insert newlines to get the desired rendering, but I was just >curious if this by design or is this considered an unresolved issue in >fop0.20.5? Below is some sample fo: > >TEST STRING 1 >/>TEST STRING 2 > > >Thanks. > > >- >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]
Rendering empty fo:block objects
Are empty objects ignored by fop0.20.5? In the following snippet of FO I inserted 6 empty blocks between two test strings and they don't seem to get rendered. I can easily use space-after or insert newlines to get the desired rendering, but I was just curious if this by design or is this considered an unresolved issue in fop0.20.5? Below is some sample fo: TEST STRING 1 TEST STRING 2 Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to pass to fop user and password needed for basic authentication to get image resource from Notes database
Then i guess your solution is to write a servlet which access files using the api and get credits token lik this: http://domino.example.com/myServlet?doc=/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif&user=someUser&pass=somePass If image tag of .fo were to use the InputSource schem of xml document, you could have created an Inputsource which manage the authentification. Unfortunately, as i discovered some time before, fop does not use inputsource to load pictures. (really, it uses a simple URL()) I think this will be handled in next version, but if you followed this maling list, lots of things will change in next version, so it might not be availbe for a few time :) Ha yeah, you can also try to add your custom protocol to URL (like dominoContent://) but a mpretty sure you don't even want to try as it is jvm-wide modification :) [EMAIL PROTECTED] a écrit : > > Yes, I did try this notation and the error came up the same (Could not > load external SVG: ... error) > > If I try to use such url in a web browser for example, when first > requesting this url a "page not found" is displayed and all next > responses to this > same request retrieve an empty page (there is some html but the > tag is empty so blank page is displayed). > > I also noticed that with using wget with this type of url, the image > is retrieved from the server correctly. > > Thank you David for the suggestion, I was kind of sad to notice that > this doesn't work as I thought it would. > > > > > *David Delbecq <[EMAIL PROTECTED]>* > > 13.10.2005 15:33 > Please respond to > fop-users@xmlgraphics.apache.org > > > > To > fop-users@xmlgraphics.apache.org > cc > > Subject > Re: how to pass to fop user and password needed for basic > authentication to get image resource from Notes database > > > > > > > > > > Did you try this kind of url? > http://user:[EMAIL > PROTECTED]/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif > [EMAIL PROTECTED] a écrit : > > > > > I will describe my situation. > > > > I have an application server (Domino) and on it running a web > > application. > > > > On this web application users have a basic editor (uses xhtml) to > > input basic text/formats/tables and upload images that are included in > > the document > > > > > > Images are uploaded in notes database and url is passed into this > > editor (xml source for this is standard html like > > src="http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif"; > > />) and I parse it like this: > > > > part of xsl file: > > . > > > > > > > > > > > > > name="width"> > select="@width"/> > select="concat(@width, > > 'px')"/> > > > > > > > name="height"> > select="@height"/> > select="concat(@height, > > 'px')"/> > > > > > > > > > > > > Users have a possibility to create pdf of created document from this > > application. All works fine - I generate xml on demand and transform > > it with xsl file that is prepared. > > > > The problem is when transformer fetches image from database I do not > > know how to pass username and password for authentication and the > > process that requests the image now gets a Login Page instead (html > > response) and when trying to include it into PDF an error that is > > printed in the log: > > > > [ERROR] Could not load external SVG: White spaces are required between > > publicId and systemId. > > [ERROR] Error while creating area : No ImageReader for this type of > > image > > > (http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif) > > > > > > So my question is: > > Is there a way to set username and password for fop to use when > > fetching image from publicly not accessible database resources? > > > > Thank you all for helping. > > > > Jelka > > > > - > 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: how to pass to fop user and password needed for basic authentication to get image resource from Notes database
Yes, I did try this notation and the error came up the same (Could not load external SVG: ... error) If I try to use such url in a web browser for example, when first requesting this url a "page not found" is displayed and all next responses to this same request retrieve an empty page (there is some html but the tag is empty so blank page is displayed). I also noticed that with using wget with this type of url, the image is retrieved from the server correctly. Thank you David for the suggestion, I was kind of sad to notice that this doesn't work as I thought it would. David Delbecq <[EMAIL PROTECTED]> 13.10.2005 15:33 Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject Re: how to pass to fop user and password needed for basic authentication to get image resource from Notes database Did you try this kind of url? http://user:[EMAIL PROTECTED]/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif [EMAIL PROTECTED] a écrit : > > I will describe my situation. > > I have an application server (Domino) and on it running a web > application. > > On this web application users have a basic editor (uses xhtml) to > input basic text/formats/tables and upload images that are included in > the document > > > Images are uploaded in notes database and url is passed into this > editor (xml source for this is standard html like > src=""> > />) and I parse it like this: > > part of xsl file: > . > > > > > > name="width"> > select="@width"/> > select="concat(@width, > 'px')"/> > > > > name="height"> > select="@height"/> > select="concat(@height, > 'px')"/> > > > > > > Users have a possibility to create pdf of created document from this > application. All works fine - I generate xml on demand and transform > it with xsl file that is prepared. > > The problem is when transformer fetches image from database I do not > know how to pass username and password for authentication and the > process that requests the image now gets a Login Page instead (html > response) and when trying to include it into PDF an error that is > printed in the log: > > [ERROR] Could not load external SVG: White spaces are required between > publicId and systemId. > [ERROR] Error while creating area : No ImageReader for this type of > image > (http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif) > > > So my question is: > Is there a way to set username and password for fop to use when > fetching image from publicly not accessible database resources? > > Thank you all for helping. > > Jelka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: faulty number-rows-spanned?
Daniel: Excuse my laziness, but could you post some sample XML so I can easily try this. Thanks, Lou ~~ LOG-NET, Inc. The Logistics Network Management System ~~ 230 Half Mile Road Third Floor Red Bank, NJ 07701 PH: 732-758-6800 FAX: 732-747-7497 http://www.LOG-NET.com ~~ CONFIDENTIAL & PRIVILEGED Unless otherwise indicated or if obvious from the nature of the content, the information contained herein is privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper or otherwise, which you may have of this communication. Thank you. ~~ "Daniel Brownell" <[EMAIL PROTECTED]> wrote on 10/12/2005 17:57:39: > Hi there, > > I looked back thru to Jan 2004 and couldn't find this question, so I > will ask it. > > This template match below is meant to print out two rows per > student, where the first 2 columns use number-rows-spanned="2", and > the second 2 have two rows. > > My problem is that under the very last row of each page, i get an > ugly half-row (an extra blank 2 rows under the columns that use > number-rows-spanned="2"). > > Yes, surrounded this with a table & body. It's not an empty student > element that's messing it up. AntennaHouse draws it correctly, so > it must be a FOP row-span issue. > > Can anyone please help me? > Thanks > Daniel Brownell > > > > > > > solid > 1pt > > > > width="1pt" border-style="solid"> > > > > > > > width="1pt" border-style="solid"> > > > > > > > > > > > > > > > > solid > 1pt > > > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: how to pass to fop user and password needed for basic authentication to get image resource from Notes database
Did you try this kind of url? http://user:[EMAIL PROTECTED]/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif [EMAIL PROTECTED] a écrit : > > I will describe my situation. > > I have an application server (Domino) and on it running a web > application. > > On this web application users have a basic editor (uses xhtml) to > input basic text/formats/tables and upload images that are included in > the document > > > Images are uploaded in notes database and url is passed into this > editor (xml source for this is standard html like src="http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif"; > />) and I parse it like this: > > part of xsl file: > . > > > > > > name="width"> select="@width"/> select="concat(@width, > 'px')"/> > > > name="height"> select="@height"/> select="concat(@height, > 'px')"/> > > > > > > Users have a possibility to create pdf of created document from this > application. All works fine - I generate xml on demand and transform > it with xsl file that is prepared. > > The problem is when transformer fetches image from database I do not > know how to pass username and password for authentication and the > process that requests the image now gets a Login Page instead (html > response) and when trying to include it into PDF an error that is > printed in the log: > > [ERROR] Could not load external SVG: White spaces are required between > publicId and systemId. > [ERROR] Error while creating area : No ImageReader for this type of > image > (http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif) > > > So my question is: > Is there a way to set username and password for fop to use when > fetching image from publicly not accessible database resources? > > Thank you all for helping. > > Jelka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to pass to fop user and password needed for basic authentication to get image resource from Notes database
I will describe my situation. I have an application server (Domino) and on it running a web application. On this web application users have a basic editor (uses xhtml) to input basic text/formats/tables and upload images that are included in the document Images are uploaded in notes database and url is passed into this editor (xml source for this is standard html like ) and I parse it like this: part of xsl file: . Users have a possibility to create pdf of created document from this application. All works fine - I generate xml on demand and transform it with xsl file that is prepared. The problem is when transformer fetches image from database I do not know how to pass username and password for authentication and the process that requests the image now gets a Login Page instead (html response) and when trying to include it into PDF an error that is printed in the log: [ERROR] Could not load external SVG: White spaces are required between publicId and systemId. [ERROR] Error while creating area : No ImageReader for this type of image (http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif) So my question is: Is there a way to set username and password for fop to use when fetching image from publicly not accessible database resources? Thank you all for helping. Jelka