Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Embedded SVG in HTML5 has Validation Warnings
Embedded SVG in HTML5 has Validation Warnings [message #902105] Wed, 15 August 2012 20:56
Sergei G is currently offline Sergei GFriend
Messages: 5
Registered: June 2012
Junior Member
Here is a sample HTML5 with SVG content and it generates validation warnings.
I had to adjust URL's in this post, because I am blocked to use external URLs. I have replaced :// with -##

<!DOCTYPE html>
<meta charset="utf-8" />
<h2>HTML5 SVG Circle</h2>
<svg id="svgelem" height="200" xmlns="">
    <circle id="redcircle" cx="50" cy="50" r="50" fill="red" />

Warnings: Undefined attribute name xmlns. Unknown tag g, polygon.

Compare it with XHTML, which does not generate validation errors:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" 
    <title>SVG embedded inline in XHTML</title>

    <h1>SVG embedded inline in XHTML</h1>

    <svg:svg version="1.1" baseProfile="full" width="300px" height="200px">
      <svg:circle cx="150px" cy="100px" r="50px" fill="#ff0000" stroke="#000000" stroke-width="5px"/>

Previous Topic:Adding XSD to Catalog, key type difference
Next Topic:MultiPageEditor - working with many files, marking MPE as dirty throw exception
Goto Forum:

Current Time: Thu Nov 26 20:00:15 GMT 2015

Powered by FUDForum. Page generated in 0.03879 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software