![]() | ficusArchimedes Project page image and figure attribute insertion |
The web-based ficus tool is now obsolete. It has been replaced by a new implementation in XSLT. The new ficus.xsl may be used from within Arboreal or with a standard XSLT processor.
The stylesheet is available at:
http://archimedes.fas.harvard.edu/xsl/ficus.xsl
Ficus inserts attributes for page images and figures into an XML text in the Archimedes format. Each <pb> and <figure> tag gets both an xlink:href and an id attribute. Attributes are assigned according to the conventions for locators established in the document Archimedes Project Repository: Working Draft 4.
This is the preferred method for most Archimedes Project users. Choose one of the three methods described below, and then skip to the Using Ficus subsection.
As of Arboreal 4.9, scripts can be installed automatically. So long as the scriptbase is properly set (http://archimedes.fas.harvard.edu/cgi-bin/), you can select from the menu, select the item, and click OK.
To make Ficus available from the menu, copy ficus.xsl into the scripts directory located within your personal arboreal directory. When Arboreal is restarted the next time, the menu option will be available under the menu.
Your choice. You can directly use the script from its standard location by entering the URL
http://archimedes.fas.harvard.edu/xsl/ficus.xsldirectly into the dialog presented when you select the option from the menu.
It should also be possible to use the stylesheet with a standard XSLT processor. For example, using xsltproc (a tool distributed with libxml):
xsltproc --stringparam image-series 02 ficus.xsl monte_mecha_036_la_1577.xml
Expect invocation syntax to vary between processors.
Comments and suggestions are welcome, and may be addressed to:
webmaster@archimedes.fas.harvard.edu Last modified: Wed Aug 25 11:13:02 EDT 2004