Re: SVGT 1.2 Tests: xml:space="preserve" in test text-align-201-t

Kalle Raita wrote:

> In test text-align-201-t <tspan> element is given attribute 
> xml:space="preserve". Whether this should be respected or not
> is not absolutely clear.Firstly, SVGT1.2 specification states that "SVG  
> supports thestandard XML attribute 'xml:space' to specify the handling of 
> white space characters within a given text content block element's 
> character data", and in 
> <URL:http://www.w3.org/TR/SVGMobile12/intro.html#TermTextContentBlockEle
> ment>the term "text content block element" is explicitly defined to 
> include only <text> and <textArea>.

The xml:space attribute applies to text content block element's character data (which consists of text content from its child elements). The child elements are allowed to override the parent xml:space attribute by specifying one of their own.

> On the other hand, the"xml:space" attribute is listed in the attribute  
> table 
> <URL:http://www.w3.org/TR/SVGMobile12/attributeTable.html#attribute_xml_
> _space>for <tspan> and <tbreak> as well, indicating the (reasonable)
> assumption that it should be possible to control whitespace
> handling in all SVG's text elements.

That's the intent. However, note that for tbreak it won't have a visual effect since tbreak doesn't contain any textcontent that the text content block element should render.

> Has this been already fixed in specification version that is
> under development?

It has, the clarification is in this commit[1], or in the latest editors draft here[2].

Please let us know if this doesn't address your concern.
Cheers
/Erik, on behalf of the SVG WG (ACTION-2048)

[1] http://dev.w3.org/cvsweb/SVG/profiles/1.2T/publish/text.html.diff?r1=1.71&r2=1.72&f=h
[2] http://dev.w3.org/SVG/profiles/1.2T/publish/text.html#WhiteSpace

Received on Saturday, 23 August 2008 18:19:46 UTC