hypodyne,

depends very much on your purpose...

please note you can't expect this to work:
requiredExtensions="http://example.com/SVGExtensions/EmbeddedXHTML";

try:
http://www.croczilla.com/svg/samples/circles2/circles2.xml



I've filed bug reports with all the major browsers :-)
eg https://bugzilla.mozilla.org/show_bug.cgi?id=334920

cheers

Jonathan Chetwynd



On 16 Sep 2006, at 05:15, hypodyne wrote:

Gday all.

I am trying to get foreign object working. The w3c gives this as an
example of what should work (minor editing). It always outputs
failed though. Tried firefox 1.5, abobe plugin and opera. Anyone
know of a way to get it working or a viewer that will make it work?

<?xml version="1.0" standalone="yes"?>
<svg width="4in" height="3in" version="1.1"
xmlns = 'http://www.w3.org/2000/svg'>
<desc>This example uses the 'switch' element to provide a
fallback graphical representation of an paragraph, if
XMHTML is not supported.</desc>
<!-- The 'switch' element will process the first child element
whose testing attributes evaluate to true.-->
<switch>
<!-- Process the embedded XHTML if the requiredExtensions
attribute
evaluates to true (i.e., the user agent supports XHTML
embedded within SVG). -->
<foreignObject width="100" height="50"

requiredExtensions="http://example.com/SVGExtensions/EmbeddedXHTML";>
<!-- XHTML content goes here -->
<body xmlns="http://www.w3.org/1999/xhtml";>
<p>Success</p>
</body>
</foreignObject>
<!-- Else, process the following alternate SVG.
Note that there are no testing attributes on the 'text'
element.
If no testing attributes are provided, it is as if there
were testing attributes and they evaluated to true.-->
<text font-size="10" font-family="Verdana">
<tspan x="10" y="10">Failed</tspan>
</text>
</switch>
</svg>






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to