W3C home > Mailing lists > Public > www-svg@w3.org > December 2007

Re: Marker Element clarification

From: Erik Dahlström <ed@opera.com>
Date: Fri, 07 Dec 2007 14:35:56 +0100
To: "Tonny Kohar" <tonny@kiyut.com>, www-svg@w3.org
Message-ID: <op.t2yv16aogqiacl@gnorps.palace.opera.no>

On Fri, 02 Nov 2007 06:05:34 +0100, Tonny Kohar <tonny@kiyut.com> wrote:

>
> Hi,
>
> Sorry for the cross posting in svg-developers@yahoogroups.com as well.
>
> Could someone clarify or explain the following regarding Marker Element:
>
> - What is allowable content for Marker ?
> eg:
> <Marker ..>
>         <path/>, ??? what else ?
> </Marker>

The SVG 1.1 spec says:
<!ENTITY % SVG.marker.content
     "( %SVG.Description.class; | %SVG.Animation.class;  
%SVG.Structure.class;
        %SVG.Conditional.class; %SVG.Image.class; %SVG.Style.class;
        %SVG.Shape.class; %SVG.Text.class; %SVG.Marker.class;
        %SVG.ColorProfile.class; %SVG.Gradient.class; %SVG.Pattern.class;
        %SVG.Clip.class; %SVG.Mask.class; %SVG.Filter.class;  
%SVG.Cursor.class;
        %SVG.Hyperlink.class; %SVG.View.class; %SVG.Script.class;
        %SVG.Font.class; %SVG.marker.extra.content; )*"
>

Anything you can put inside an 'svg' element can also be put inside a  
'marker' element.
The content models for the 'svg' element and the 'marker' element are  
identical.

> - Does any element eg: <g>,<use>, <ellipse>, <line>, etc is allowable as
> a child for Marker ? because SVG Specification 1.1 only give example as
> path element. The DTD also not very clear as well.

The elements you list are allowed. The DTD is hard to read if you're not  
familar with the syntax.
I believe this is why the SVG 1.2 Tiny spec has an appendix with this type  
of information in a more easy-to-read format (see  
http://www.w3.org/TR/SVGMobile12/elementTable.html).

> - Is multiple graphics element allowed ?
> eg:
> <Marker ..>
>         <path/>
>         <path/>
> </Marker>
>
> or only single element ?

Any number of elements.

> - any constraint not allowed for the above eg: filter, gradient, etc
> inside graphics object that define the marker ?

You can use filters, gradients etc in a 'marker'.

> Note: this is for SVG 1.1 and if SVG 1.2 is behave differently, it would
> be nice to be indicated it is SVG 1.2 only

I think markers in 1.2 will behave the same. But a thing to note is that  
markers are not included in the SVG 1.2 Tiny spec.

Hope this answers all of your questions
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Received on Friday, 7 December 2007 13:36:15 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:38 GMT