The User Guide of Swordfish, a real product, originally written in DITA. CSSMedia reads one XML file, so the map and its topics were merged in two ways. Each merged file has a different structure and needs its own stylesheet.
| Merged with | XML | Images | Stylesheet | |
|---|---|---|---|---|
| TypesDitac | swordfish.xml | img | ditac.css | swordfish.pdf |
| TypesDitac | swordfish.xml | img | ditac_hyphens.css | swordfish_hyphens.pdf |
| DITA Open Toolkit | swordfish_dita-ot.xml | images | dita-ot.css | swordfish_dita-ot.pdf |
Run the commands from the samples folder, the parent of this one:
cssmedia -x Swordfish/typesditac/swordfish.xml -c ditac.css -p Swordfish/typesditac/swordfish.pdf
cssmedia -x Swordfish/typesditac/swordfish.xml -c ditac_hyphens.css -p Swordfish/typesditac/swordfish_hyphens.pdf
cssmedia -x Swordfish/dita-ot/swordfish_dita-ot.xml -c dita-ot.css -p Swordfish/dita-ot/swordfish_dita-ot.pdf| Stylesheet | Input | Hyphenation |
|---|---|---|
ditac.css |
TypesDitac file | none |
ditac_hyphens.css |
TypesDitac file | hyphens: auto on the root element, with the patterns of each language |
dita-ot.css |
DITA-OT file: the map comes first, then the topics | none |
The main README explains how to create a merged file with TypesDitac or with the DITA Open Toolkit.