From: Tony G. <Ton...@Su...> - 2006-03-29 21:25:58
|
In the process of fixing SourceForge bug "[ 1222524 ] indexterm-related crash", I added some rudimentary support for fo:page-number-citation. One part of the implementation was to add a hash of FO's Ids so they can be looked up later. A second part was to insert an FO's Id in the hash. I have so far only done this for fo:wrapper (in fo/fo-wrapper.c). The third and most difficult part will be getting from an Id reference to an FO to an area and then to a page number. I have also so far only done this for empty fo:wrapper. In support of the second part, I have added the XSLT to the 'spec-dump' module to generate the fo_fo_register_id() call in the right place for those FOs that have an 'id' property. The simple patch task is to add the two lines of the fo_fo_register_id() call to the .c files for the other 31 FOs that don't already have the call. This could be done by a selective merge with the generated file in the 'spec-dump' module or by copying and modifying the one in fo-wrapper.c. How it's done isn't all that important. This is not on the critical path for xmlroff 0.4.0, but it is necessary if fo:page-number-citation is to be implemented properly. Is there anybody who wants a useful but mundane first step in modifying xmlroff source code? Is there anybody who wants to do a useful second step of implementing getting from an Id reference to an FO to an area and then to a page number? Regards, Tony. |