Thanks for your reply!
--- In [email protected], "Frank Bruder" <[EMAIL PROTECTED]> wrote:
> Well, I wouldn't have expected your approach to work because: How
> would IE know that the stylesheet processing instruction is to be
> handed to ASV? And there doesn't seem to be a way to do this.
I don't know the inner workings of IE7 or ASV, but conceptually,
I don't see why stylesheet information could not be passed on to
plugins.
> I tried placing the stylesheet in an svg:style element inside the
> svg:svg element. I thought if this would work then using an external
> stylesheet might be possible by using external entities or something
> like that. But I didn't even get an internal stylesheet to work.
> And to my astonishment, even the use of the style attribute directly
> at svg: elements did not work in IE+ASV. So all I can say is that CSS
> for inline SVG in IE is even more of a problem than I had expected.
Fiddling a lot, I finally succeeded in placing a stylesheet in
the svg:
<svg:svg ...>...
<svg:defs>
<svg:style type='text/css'>
rect { fill: red }
</svg:style>
</svg:defs>
...
</svg:svg>
This worked. However, experimenting I came across numerous
variations that strangely did not work:
* removing the <?xml-stylesheet ...?> processing tag at the
top of the XHTML document would break IE7+ASV
* enclosing the stylesheet in <![CDATA[ ... ]]> would break
IE7+ASV. How do we then insert a stylesheet using '>'
selectors and still produce XML?
* rect.X in the stylesheet would not work in IE7+ASV for
rect tags with class="X", nor would rect[class="X"]. However,
rect[cls="X"] would work for rect tags with cls="X", and
rect#1234 would work for rect tags with id="1234" !?!
> In case that works, you could try
> external entities or XSLT to include an external stylesheet.
Sorry, I don't understand what you mean here. I tried briefly
using @import "http://..." in the inlined stylesheet, but that
did not seem to work for me.
> Otherwise, maybe there is some way to make IE hand on a processing
> instruction to ASV or maybe there is some way to set a stylesheet for
> ASV with a param element inside the object node in the head. There is
> quite a lot of things which can be done in IE but are not well known.
This would really be nice. As it is now, you cannot change a
style option in a centrally located style file (and I guess the
user cannot set his own style file to override styling).
> Regarding your question: What are you doing wrong?
>
> My answer would be: You're using the wrong browser.
I could not agree more! Please convince the vast number of IE
users to act on this fact. ;-)
> If you really need to support IE then I would suggest either to embed
> external SVG files by reference
I would like to avoid this, as I am using online generated XHTML
documents and would like to inline to avoid caching issues etc.
But thanks for all your help! Now I have a somewhat working
solution for Inferior Explorer 7.
-- Arne
-----
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/