This stylesheet converts a recipe document conforming to the eatdrinkfeelgood 1.1 DTD into an XSL-FO document suitable for generating an index card.
The current version of the eatdrinkfeelgood 1.1 to index-card formatting objects stylesheet is 1.1.
released April 04, 2006
# First generate an XSL-FO document from your recipe xsltproc -o /path/to/recipe.fo \ /path/to/eatdrinkfeelgood-1.1-to-indexcard-fo.xsl \ /path/to/your/recipe.xml # Next generate a PDF file using the Fop processor fop /path/to/recipe.fo \ -pdf /path/to/recipe.pdf
The default dimensions for index cards are 5 inches by 7 inches. If the value of the size parameter is small the dimensions will be reduced to 4 inches by 6 inches.
Specify the default font size for the text on the index card. All formatting is scaled using this value and the em property. The default font size is 8pt.
Do not include any images in the final output.
Include image title, caption and link to external reference but not the image itself in the final output.
Set the image height for scaling all images to be included in the final output. The default setting is to simply let the FO processor figure out what to do, which usually means rendering the image at its original size.
Since we're talking about index cards that may be too big but that's your business.