Re: xmlroff source code

Tony Graham <[email protected]> Tue, 28 Mar 2006 15:51:39 +0100
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
"Mauro C." <[email protected]> writes:
> I would to contribute to xmlroff project not only dev
> a php ext.
>
> I just start to study source, too much source :)
>
> Tony if you could give me some hint so I can
> contribute also to implements xsl-fo.
> Simly give me .c file to study fist, expecially
> fo-area and fo-fo.

How to add a new property:

1. Checkout the 'spec-dump' and 'xmlroff' modules.

2. cd to the 'spec-dump' module.

3. Add an unimplemented property to 'dump-info.xml'

4. 'make'

5. Copy the property's .c and .h files to xmlroff/property

6. For 'fo-context*.[ch]', 'property/fo-all-property.h',
   'property/fo-property-eval.h' and the .c, .h, and -private.h files for any
   FO that implements the property, merge the additions for the new property
   into the existing files in the 'xmlroff' module.

   Ignore evidence of indecision about how to handle properties with multiple
   components and of the 'spec-dump' stylesheets not munging other property
   names correctly (although improvements to stylesheets are always welcome).

6. Add the new property's .c and .h files to xmlroff/property/Makefile.am

7. Build xmlroff.

8. Work on making xmlroff actually use the property that you just added.

   It helps to add test files to 'testsuite' so you can verify that you are
   doing the right thing.  We can cover that, too, if anybody wants.

Regards,


Tony.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642