[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: OT: adobe svg plugin namespacing problem


adove svg
Hi,

> I have an svg file that works with Adobe’s plug-in. Inside I have the 
> following svg graphic element, <svg:circle cx="20" cy="20" r="10" 
> fill="#cfc000;"/>
>
> If I put this inside of another namespaced element, for example 
> <mynmspace:element><svg:circle cx="20" cy="20" r="10" 
> fill="#cfc000;"/></mynmspace:element> the svg circle is no longer 
> being displayed.
>
> I am of the opinion that svg:circle should be displayed, although I 
> realize there may be some arguments on the namespace perma-thread 
> which would be in disagreement with this opinion.

It's not a question of disagreeing here, the SVG 1.0 recommendation 
specificies the behavior of an SVG user agent in this case and the 
Adove SVG Viewer is behaving correctly. Basically, when you have an 
element in a foreign namespace within your SVG document display will be 
disabled on this element and its subtree. Meanwhile, you still have 
complete access to its DOM so you can fiddle with it. I was not on the 
Working Group for SVG 1.0 and do not know why SVG elements within a 
parent element on a foreign namespace do not render, but I presume it 
is linked to the lack of context for rendering. Think of it, what if 
your foreign element describes a transformation or any graphic data 
that could apply to all of its children, how do you rendre your SVG 
element bearing in ming the spec says foreign elements are ignored for 
rendering? Anyway, you can read on in the Extensibility section of the 
SVG 1.0 spec.

http://www.w3.org/TR/SVG/extend.html

Antoine
-- 
Antoine Quint <antoine.quint@f...>
SVG Consultant & Research Engineer, Fuchsia Design
W3C SVG Working Group Invited Expert
Journal - http://use.perl.org/~graouts/journal/


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.