27267RE: [svg-developers] Re: namespace question
- Mar 10, 2003Hi, All-
I've also been embedding "meta-information" in one of my SVG apps, in much
the way that Jon has, below. I've been using a dummy namespace up to this
point, and setting each attribute/value under this namespace, using
"setAttributeNS(myns, 'attrName', 'attrVal')". As Jon said, it works, and is
gettable, allowing me to provide data for tooltips. But now I want to define
the namespace attributes, to make it "legal" and valid, if possible. Has
anyone got an example of how I can do this? The Spec is a bit abstract on
> -----Original Message--------
> From: news [mailto:news@...]On Behalf Of Niklas Gustavsson
> Sent: Monday, March 03, 2003 5:26 PM
> To: firstname.lastname@example.org
> Subject: [svg-developers] Re: namespace question
> nrissvg wrote:
> > Is it good form to add custom attributes to an SVG tag without
> > specifying some sort of namespace?
> > e.g. I have a tag like this:
> > <circle id="circ1" cx="100" cy="150" r="4" name="Upper Begonia" />
> > Is it okay to make it:
> > <circle id="circ1" cx="100" cy="150" r="4" name="Upper Begonia"
> > featuretype="point" />
> > This doesn't seem to affect ASV and it is gettable. But I'm wondering
> > if it's valid XML.
> It's no valid SVG. However, with a modified DTD it could be. But, it's
> best to keep it in your own namespace to keep a clean separation.
> You can read more at: http://www.w3.org/TR/SVG11/extend.html#PrivateData
> To unsubscribe send a message to:
> visit http://groups.yahoo.com/group/svg-developers and click
> "edit my membership"
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
- << Previous post in topic Next post in topic >>