Re: <link> and <param> in SVG (SVG ACTION-2534)

On Fri, May 1, 2009 at 12:18 AM, Doug Schepers <schepers@w3.org> wrote:
> Through an oversight, the only specified way to link to an external CSS
> stylesheet is through an XML PI.  While this works okay, it's not the best
> way to do it, and is different than the way HTML does it.  We're looking at
> a couple of options:
>
> 1) we add @xlink:href to <svg:style>

Gecko supports the @null:src attribute on <html:style> elements. I
don't know if this is supported in any other browsers. Would be nice
to line it up with this, and would also make it more consistent with
things like script@src which I've understood the SVG WG to be
investigating?

> 2) we add a new element, like <link>, to SVG (I've already shown that this
> sometimes works when the <link> is in the XHTML NS [1], but that isn't
> specified anywhere, and isn't intuitive)

If you do add this (which I think you should), it'd be nice if
<svg:link> and <html:link> was compatible in more areas other than
just linking to stylesheets.

> Regarding passing parameters, SVG has never had a mechanism for this. We
> would like to add one.  Again, we can either create a new element, or we
> could repurpose the <param> element from the HTML <object>, for use in SVG.

Why do you want to pass parameters?

The only "stylesheet" language which supports parameters that I know
of is XSLT, and XSLT is unlikely to ever work with any other linking
mechanism than <?xml-stylesheet?>. If you do want to add parameter
passing to <?xml-stylesheet?> we couldn't use a <param> element since
<?xml-stylesheet?> has no children. Gecko has support for parameter
passing using the <?xslt-param-namespace?> and <?xslt-param?> PIs,
which might be a good starting point for standardizing this.

/ Jonas

Received on Friday, 1 May 2009 08:42:50 UTC