syntax for a name in SVG within an XHTML document.

P

peasthope

Folk,

At http://carnot.yi.org/Category2.xhtml is a document
containing a diagram in SVG. I've tried to make it conform
to http://www.w3.org/TR/XHTMLplusMathMLplusSVG/ .
Absence of MathML code should do no harm.

Debian Iceweasel displays the xhtml text and table
but not the diagram. http://validator.w3.org/ complains
about <svg:defs>. See
"http://validator.w3.org/check?uri=http://carnot.yi.org/
Category2.xhtml"
..
What is wrong with qualifying defs with the namespace
this way?

Any ideas to fix this?

Thanks, ... Peter E.
 
M

Martin Honnen

Folk,

At http://carnot.yi.org/Category2.xhtml is a document
containing a diagram in SVG. I've tried to make it conform
to http://www.w3.org/TR/XHTMLplusMathMLplusSVG/ .
Absence of MathML code should do no harm.

Debian Iceweasel displays the xhtml text and table
but not the diagram. http://validator.w3.org/ complains
about <svg:defs>. See
"http://validator.w3.org/check?uri=http://carnot.yi.org/
Category2.xhtml"
.
What is wrong with qualifying defs with the namespace
this way?

I don't think it is a namespace issue, the defs element is not allowed
as a child of a text element.
 
P

peasthope

I don't think it is a namespace issue, the defs element is not allowed
as a child of a text element.

Thanks Martin. The svg element now has a style
attribute for text attributes. Several other details
are revised and the document now validates.

You can see the revision at the same URI.
http://carnot.yi.org/Category2.xhtml

Thanks, ... Peter E.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top