How to parse SVG Fragment Identifiers

Hi,

Daniel Holbert and I have come across a couple of issues when
implementing http://www.w3.org/TR/SVG/linking.html#SVGFragmentIdentifiers
in Firefox.

Question 1. What is the syntax for AspectParams?

Lets say you want to set preserveAspectRatio="xMinYMin slice"

We have this sentence in the specification: "Spaces are not allowed in
fragment specifications; thus, commas are used to separate numeric
values within an SVG view specification"

But that does not help us as we don't have any numeric values. Testing
seems to indicate that Batik wants a comma to separate things but
Opera wants one of those disallowed spaces and not a comma at all.
FWIW we're currently in the Opera camp but are willing to change.

Observation 1. If you have an SVG document that already has a viewBox
on the outer svg element, you don't seem to be able to use an SVG
fragment identifier to remove it altogether.

Best regards

Robert.

Received on Wednesday, 22 August 2012 13:35:07 UTC