xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From darshan <u4729...@anu.edu.au>
Subject Re: Want to contribute
Date Tue, 24 May 2011 01:35:47 GMT
Thank you for the quick response Andreas.

1. In the test file I set the /inline padding-left  ="20"/ for the 
header and footer in lines 43, 48, 57 and 62.

2. I then generated an area tree using version 0.95 of FOP, I generated 
another area tree with the latest build I downloaded 
http://ci.apache.org/projects/xmlgraphics   
/fop/snapshots/fop-20110514-bin.tar.gz . The xsl file I used for the 
transformation was testcase2fo.xsl in the test/layoutengine folder

3. Then I separated the elements in the two .at file on each separate 
line and ran the /diff/ command for the two .at files.

4. The .at files had/inlineparent padding-start="20000" /for four 
different blocks which I presumed were the header and footer blocks form 
the table. I just notice that the /bap="20000 0 0 0"/ values for 
/inlineparent /has changed as well. I have added the difference in the 
new attached test file. There were differences in the color attributes 
for some elements but I ignored them. The difference file that only has 
the padding differences is attached.

5. I found out the xpath values using the firefox extention XPather and 
then filled in the checks accordingly.

I have attached the .at files as well.

Also does follow-up attachment mean that I attached the file to the 
bugreport https://issues.apache.org/bugzilla/show_bug.cgi?id=50196 and 
close it?

Thank you,
Darshan

On 23/05/11 05:16, Andreas L. Delmelle wrote:
> On 22 May 2011, at 19:47, darshan wrote:
>
> Hi Darshan
>
>> Thank you for the reply. I created a diff file and then wrote the checks, but I couldn't
figure how to verify if the test was working. Also since the pagehttp://xmlgraphics.apache.org/fop/dev/testing.html
 does not specify how I should submit the test file, I'm attaching the files with this mail.
If this is not the right way then please guide me to submit the file properly.
> The best way is to just post them as a follow-up attachment, if you decide to close the
bug.
>
>> To run the test, I tried by putting the file in the test/layoutengine/standard-testcases
 folder and then setting the variable "-Dfop.layoutengine.starts-with" to my test file name,
but it didn't run the test. If you could also let me know how to verify if the test works
then that would be great.
> Can you describe more in detail the exact steps you are taking? How do you set the variable,
and what do you do after that?
>
> I ran your test and it failed:
> java.lang.RuntimeException:
> Expected XPath expression to evaluate to '20000', but got '' (XPath: /areatree/pageSequence/pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block/block[10]/block/linearea/inlineparent/@padding-start)
>
> but this was in my local sandbox (!= trunk), so that may also be due to other changes
on my end.
>
>> Lastly for my report I need to write who started the project and what was the reason
for starting the project. I know that James Tauber started the project but could you please
tell me why he started it?
> I would say it was just to have an open-sourced, free, Java-based XSL-FO implementation
to augment the existing initiatives for XML parsing at that time, but I do not know this for
certain.
>
>
> Regards
>
> Andreas
> ---


Mime
View raw message