W3C home > Mailing lists > Public > www-svg@w3.org > November 2004

Re: SVG 1.2 Comment: systemLanguage and switch

From: Jonathan Chetwynd <j.chetwynd@btinternet.com>
Date: Sat, 27 Nov 2004 20:36:58 +0000
Message-Id: <156C2741-40B4-11D9-A83F-000A95C7D298@btinternet.com>
To: SVG (www) list <www-svg@w3.org>

is it intended that there be a script method of evaluating the  
or the result of switch? this may already be possible, but techniques  
are currently hard to find.

This example* does not evaluate the switch element and should return  
"ploc" however it would be useful if the default value "splat" was  
available via script (where systemLanguage = "fr" was not true).

This will be particularly relevant for elements such as title or desc,  
which may rely on scripting for display until user agents and assistive  
technologies are able to do so.


Jonathan Chetwynd
http://www.peepo.co.uk     "It's easy to use"

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
<svg xmlns="http://www.w3.org/2000/svg" onload="harry()">
<script type="text/javascript"><![CDATA[
function harry(){
var myText=document.getElementById('ourText')
<g  id='ourText' >
    <text systemLanguage="fr">ploc</text>
Received on Saturday, 27 November 2004 20:37:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:01 UTC