--- In [email protected], "theomulriain" <[EMAIL PROTECTED]>
wrote:
>    Does anyone have an example svg example using xslt? I tried the 
> following example and it didn't work. The following is an example 
> from the book "Fundamentals of SVG Programming Concepts to Source 
> Code" by Oswald Campesato (ISBN 1-58450-298-3) wich is a very good 
> book with some highly mathematical examples. However the example I 
> tried doesn't work with the IE 6 xslt processor. It is geared toward 
> saxon. 


> xml File xsltToSVG1.xml pg.389
> _______________________________________________________
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="xsltToSVG1.xsl"?>

If you use that xml-stylesheet processing instruction it looks like
you are trying to use client-side XSLT in IE which I think does never
work if you want the result of the XSLT transformation to be rendered
by a plugin. And with IE 6 your only choice to render SVG is with the
help of a plugin. So what you are trying to do is not going to work
unfortunately, it is better to apply XSLT on the server and then let
IE render the result with the help of a plugin.


> xsltToSVG1.xls  page 390
> ______________________________________________________________
> 
> <?xml version="1.0" ?>
> <xsl:stylesheet
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

As you want to create SVG elements you should add the right default
namespace here e.g.
      xmlns="http://www.w3.org/2000/svg";
otherwise you literal result elements below are not in the proper
namespace.


With that change the XML is correctly transformed to SVG with a
nightly Firefox and rendered correctly.
But as said, using XSLT in IE client-side to have the result rendered
by a plugin does not work as far as I know.





-----
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/

<*> 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