simplified HTML/SVG creation from nested fragments