Project

Profile

Help

Support #5254

closed

Unexpected Empty Namespace Entry with XSL-FO & Inline SVG

Added by Dansker Dave about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-01-30
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
10
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Java

Description

Hi there,

I'm getting an unexpected empty Namespace Entry with XSL-FO & Inline SVG.

I'm using Saxon HE 10.6 with openJdk 17 on Windows 10, 64-bit. The Test Output is from Windows, but it happens on our SUSE Enterprise Linux 11.1 Server too. (only entry on the Classpath for this Test was Saxon HE)

Please see attached Program & Output.

Here's an extract from the attached Output. What bothers me is the xmlns="" Attribute on the <g> Element.

<fo:instream-foreign-object content-type="image/svg+xml" content-width="272.6mm">
	<svg xmlns="http://www.w3.org/2000/svg" height="775" viewBox="0 0 1184 775" width="1184">
		<g xmlns="" style="fill-opacity:0;stroke-width:7;stroke:red">
			<rect height="99" width="254"/>
		</g>
	</svg>
</fo:instream-foreign-object>

Surely, the <g> Element should inherit the Namespace from its <svg> parent?

All the best, Dave


Files

SvgNamespace.java (3.55 KB) SvgNamespace.java Test Program Dansker Dave, 2022-01-30 14:00
SvgNamespaceOutput.txt (3.04 KB) SvgNamespaceOutput.txt Test Output Dansker Dave, 2022-01-30 14:12
SvgNamespaceStreamSource.java (2.84 KB) SvgNamespaceStreamSource.java StreamSource Version Dansker Dave, 2022-01-30 16:41

Please register to edit this issue

Also available in: Atom PDF