You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/20 03:41:00 UTC

[Xmlgraphics-batik Wiki] Update of "OptimizingStylesheets" by ArchieCobbs

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-batik Wiki" for change notification.

The following page has been changed by ArchieCobbs:
http://wiki.apache.org/xmlgraphics-batik/OptimizingStylesheets

New page:
The following XSL transforms can be helpful in optimizing SVG documents, especially for certain machine generated documents that have a zillion consecutive <path> elements. Batik's memory usage scales with the number of elements in the document. When multiple <path> elements can be replaced by a single <path> with a longer "d" list, memory is saved.

 * '''SVG <path> normalizer''' - converts <rect>, <circle>, <ellipse>, <line>, <polygon>, and <polyline> tags into <path> tags.
 * '''SVG <path> consolidator''' - consolidates consecutive <path> elements into a single element.
 * '''XML whitespace eliminator''' - eliminates unnecessary whitespace in any XML document.

For best results, run all three transformations in the order shown.