W3C home > Mailing lists > Public > www-svg@w3.org > August 2002

Re: [SVG1.0] no tspan allowed inside an anchor?

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Sat, 17 Aug 2002 18:04:28 +0200
Message-ID: <3D5E740C.1040205@pinkjuice.com>
To: AndrewWatt2001@aol.com
CC: alex.fritze@crocodile-clips.com, skeeter@skeeter-s.com, www-svg@w3.org

AndrewWatt2001@aol.com wrote:


> The question was answered and if you had visited the URL I gave you, 
> http://www.XMML.com/ (third minpage) you would have seen it demonstrated 
> too.


Just FYI:
(Perhaps I didn't save it correctly, but) here's what Xerces-C 1.7.0 says:

#####
domcount xmml.svg

Error at file C:\C2-data\gen\to-delete\xmml.svg, line 139, char 5
   Message: Element 'tspan' is not valid for content model: 
'(#PCDATA|desc|title|
metadata|defs|path|text|rect|circle|ellipse|line|polyline|polygon|use|image|svg|
g|view|switch|a|altGlyphDef|script|style|symbol|marker|clipPath|mask|linearGradi
ent|radialGradient|pattern|filter|cursor|font|animate|set|animateMotion|animateC
olor|animateTransform|color-profile|font-face)*'

Error at file C:\C2-data\gen\to-delete\xmml.svg, line 217, char 5
   Message: Element 'tspan' is not valid for content model: 
'(#PCDATA|desc|title|
metadata|defs|path|text|rect|circle|ellipse|line|polyline|polygon|use|image|svg|
g|view|switch|a|altGlyphDef|script|style|symbol|marker|clipPath|mask|linearGradi
ent|radialGradient|pattern|filter|cursor|font|animate|set|animateMotion|animateC
olor|animateTransform|color-profile|font-face)*'

Error at file C:\C2-data\gen\to-delete\xmml.svg, line 222, char 5
   Message: Element 'tspan' is not valid for content model: 
'(#PCDATA|desc|title|
metadata|defs|path|text|rect|circle|ellipse|line|polyline|polygon|use|image|svg|
g|view|switch|a|altGlyphDef|script|style|symbol|marker|clipPath|mask|linearGradi
ent|radialGradient|pattern|filter|cursor|font|animate|set|animateMotion|animateC
olor|animateTransform|color-profile|font-face)*'

Error at file C:\C2-data\gen\to-delete\xmml.svg, line 296, char 5
   Message: Element 'tspan' is not valid for content model: 
'(#PCDATA|desc|title|
metadata|defs|path|text|rect|circle|ellipse|line|polyline|polygon|use|image|svg|
g|view|switch|a|altGlyphDef|script|style|symbol|marker|clipPath|mask|linearGradi
ent|radialGradient|pattern|filter|cursor|font|animate|set|animateMotion|animateC
olor|animateTransform|color-profile|font-face)*'

Error at file C:\C2-data\gen\to-delete\xmml.svg, line 314, char 20
   Message: Attribute 'in' is not declared for element 'feTurbulence'

Errors occured, no output available
#####


> <tspan>
> <a>
>   whatever text
> </a>
> </tspan>


Yes, this

<text><tspan>
<a xlink:href="foo">
   whatever text
</a>
</tspan>
</text>

is valid.

Tobi

-- 
http://www.pinkjuice.com/
Received on Saturday, 17 August 2002 12:04:23 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:23 GMT