css4j / echosvg

SVG implementation in the Java™ Language, fork of Apache Batik, supporting level 4 selectors and colors.
Apache License 2.0
39 stars 2 forks source link

Allow SVG embedded into XHTML in `XMLAbstractTranscoder` #69

Closed carlosame closed 1 year ago

carlosame commented 1 year ago

Currently only the transcoder helper allows the processing of SVG elements embedded into XHTML documents, but not the main Transcoder classes. However, initial support for XHTML with embedded SVG elements could be easily added to XMLAbstractTranscoder and subclasses.

Initially, the first svg element (in document order) would be used as the SVG root. In the future, perhaps an optional transcoding hint specifying a CSS selector could be used.

This issue is related to #40.