W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2012

[Bug 16272] New: Use of foreign namespace in SVG marked as invalid.

From: <bugzilla@jessica.w3.org>
Date: Thu, 08 Mar 2012 10:08:00 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-16272-169@http.www.w3.org/Bugs/Public/>

           Summary: Use of foreign namespace in SVG marked as invalid.
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: dave.null@w3.org
        ReportedBy: tavmjong@free.fr
         QAContact: www-validator-cvs@w3.org

SVG specifically allows foreign namespaces. The validator marks them as

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

"Element piechart from namespace http://example.org/myapp 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 = 'http://www.w3.org/2000/svg'>
    <myapp:piechart xmlns:myapp="http://example.org/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 -->

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

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 8 March 2012 10:08:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:54 UTC