This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16272 - Use of foreign namespace in SVG marked as invalid.
Summary: Use of foreign namespace in SVG marked as invalid.
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
Depends on:
Reported: 2012-03-08 10:07 UTC by tavmjong
Modified: 2012-03-08 10:07 UTC (History)
0 users

See Also:


Description tavmjong 2012-03-08 10:07:59 UTC
SVG specifically allows foreign namespaces. The validator marks them as invalid.

The following example, taken from the SVG 1.1 2nd edition specification returns the error:

"Element piechart from namespace not allowed as child of SVG element defs in this context."

<?xml version="1.0" standalone="yes"?>
<svg width="4in" height="3in" version="1.1"
     xmlns = ''>
    <myapp:piechart xmlns:myapp=""
                    title="Sales by Region">
      <myapp:pieslice label="Northern Region" value="1.23"/>
      <myapp:pieslice label="Eastern Region" value="2.53"/>
      <myapp:pieslice label="Southern Region" value="3.89"/>
      <myapp:pieslice label="Western Region" value="2.04"/>
      <!-- Other private data goes here -->
  <desc>This chart includes private data in another namespace
  <!-- In here would be the actual SVG graphics elements which
       draw the pie chart -->