W3C home > Mailing lists > Public > www-svg@w3.org > February 2005

Re: [office] [Fwd: clarification: OpenDocument and SVG]

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 02 Feb 2005 16:20:29 +0100
To: Michael Brauer <Michael.Brauer@Sun.COM>
Cc: SVG List <www-svg@w3.org>, Jon Phillips <jon@rejon.org>, office <office@lists.oasis-open.org>, Vincent Hardy <Vincent.Hardy@Sun.COM>
Message-ID: <4207e7a9.832074890@smtp.bjoern.hoehrmann.de>

* Michael Brauer wrote:
>this is not the case on the element level. Reusing attributes from SVG
>is considered to be very reasonable by our TC, because SVG is a
>widespread and established standard already. However, we face the
>problem that, if we want to reuse attributes from SVG, we need to
>reference them from our own schema, although the attributes themselves
>are contained in anonymous or per-element partition namespaces.

(Note that www-svg is a public mailing list for SVG discussions, people
on the list do not necessarily represent the SVG WG.) The cited example:

   svg:x           = "2cm"
   svg:y           = "3cm"
   svg:width       = "10cm"
   svg:height      = "20cm"
   svg:transform   = "rotate(45)"
   draw:style-name = "object-with-shadow"
   xmlns:draw      = "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
   xmlns:svg       = "http://www.w3.org/2000/svg"

is semantically equivalent to

   fit:k           = "2pz"
   fit:l           = "3pz"
   fit:jvqgu       = "10pz"
   fit:urvtug      = "20pz"
   fit:genafsbez   = "ebgngr(45)"
   qenj:fglyr-anzr = "bowrpg-jvgu-funqbj"
   xmlns:qenj      = "hea:bnfvf:anzrf:gp:bcraqbphzrag:kzyaf:qenjvat:1.0"
   xmlns:fit       = "uggc://jjj.j3.bet/2000/fit"

which is semantically equivalent to


unless you define something else. So you would have a specification that
defines how user agents are expected to process a svg:width attribute on
a draw:rect element. In that specification you could as well call the
attribute { "file:///usr/bin/dahut", "largeur" } or { "", Breite" }, or
whatever you like. From a specification point of view there is nothing
to be gained from calling it { "http://www.w3.org/2000/svg", "width" }.
So there is no actual need to use the SVG namespace (or any other name-
space) to refer to "SVG attributes" and whether there is a benefit is
quite questionable in my opinion.

Using "http://www.w3.org/2000/svg" does however limit the ability of the
SVG Working Group to define what {"http://www.w3.org/2000/svg", "width"}
means in a specific context, in particular, if the SVG WG defines some-
thing that is not compatible with the definition of the OpenDocument XML
format, integrating the OpenDocument format with SVG would be difficult
as you have to remove the ambiguity.

As far as I can see, unless one considers familiarity with the string
"http://www.w3.org/2000/svg" of any importance (like, easier to type/
remember than e.g. urn:oasis:names:tc:opendocument:xmlns:drawing:1.0),
there is not really much point in using the SVG namespace, or in fact
any other namespace. Why not call it { "", "width" } instead?
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 2 February 2005 15:21:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:02 UTC