Connecting Tech Pros Worldwide Forums | Help | Site Map

syntax for a name in SVG within an XHTML document.

peasthope@shaw.ca
Guest
 
Posts: n/a
#1: Oct 20 '08
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.

Martin Honnen
Guest
 
Posts: n/a
#2: Oct 20 '08

re: syntax for a name in SVG within an XHTML document.


peasthope@shaw.ca wrote:
Quote:
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.


--

Martin Honnen
http://JavaScript.FAQTs.com/
peasthope@shaw.ca
Guest
 
Posts: n/a
#3: Oct 22 '08

re: syntax for a name in SVG within an XHTML document.


On Oct 20, 9:10*am, Martin Honnen <mahotr...@yahoo.dewrote:
Quote:
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.
Closed Thread