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

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 UTC