Re: [Fwd: linearGradient:xlink:href #REQUIRED or #IMPLIED?]

Actually, if you look again at the March 3 spec, the %xlinkRefAttrs entity
does NOT define an 'href' attribute -- it defines everything in XLink
except 'href'. Each individual element that has an 'href' defines that
attribute itself outside of the entity reference for the reason Steve
mentions below, which is that sometimes the 'href' it is #IMPLIED and
sometimes it is #REQUIRED.

The reason for the confusion is that the documentation at
(http://www.w3.org/TR/SVG/struct.html#xlinkRefAttrs) looks as if the 'href'
is part of the entity definition, but if you look again, you'll see that
the ">" that ends the entity is above the line that defines the 'href'.

Obviously, this documentation approach is confusing. I'll see what I can do
to make it less confusing.

Jon Ferraiolo
SVG Editor
Adobe Systems Incorporated


At 12:25 PM 5/18/00 +0200, you wrote:
>ouch. I guess the earlier declaration will win, so thse isn't actually a
>validation problem, but this should be corrected.
>
>--
>ChrisReturn-Path: <www-svg-request@w3.org>
>Received: from www19.w3.org (www19.w3.org [18.29.0.19])
>	by tux.w3.org (8.9.3/8.9.3) with ESMTP id PAA01675;
>	Wed, 17 May 2000 15:18:03 -0400
>Received: (from daemon@localhost)
>	by www19.w3.org (8.9.0/8.9.0) id PAA17970;
>	Wed, 17 May 2000 15:08:48 -0400 (EDT)
>Resent-Date: Wed, 17 May 2000 15:08:48 -0400 (EDT)
>Resent-Message-Id: <200005171908.PAA17970@www19.w3.org>
>Message-id: <fc.0085846d00005d200085846d00005d20.5d28@savagesoftware.com>
>Date: Wed, 17 May 2000 12:08:43 -0700
>To: www-svg@w3.org
>From: sdickson@savagesoftware.com (Steve Dickson)
>MIME-Version: 1.0
>Content-type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>Subject: linearGradient:xlink:href #REQUIRED or #IMPLIED?
>Resent-From: www-svg@w3.org
>X-Mailing-List: <www-svg@w3.org> archive/latest/734
>X-Loop: www-svg@w3.org
>Sender: www-svg-request@w3.org
>Resent-Sender: www-svg-request@w3.org
>Precedence: list
>X-Mozilla-Status2: 00000000
>
>According to the WD 2000/03/03, section 13.2.2, the linearGradient element
>has as attribute
>		xlink:href %URI; #IMPLIED
>however, linearGradient also contains, through the %xlinkRefAttrs entity,
>an attribute
>		xlink:href CDATA #REQUIRED
>
>Maybe I don't understand these definitions properly, but how can an
>element have two attributes of the same name, one of which is #REQUIRED,
>the other #IMPLIED?
>
>S.
> 

Received on Thursday, 18 May 2000 20:26:45 UTC