Re: [svg-developers] Re: Selecting browser specific elements with XSLT
- Hi Helder,
Thanks for answering to my primary topic.
>> I've written a small program to select mark-up elementsYes, in my demo  I use the system-property('xsl:vendor'). But if you
>> specifically for the browser in use.
>> It's done client-side by XSLT in a preprocessing stage
> If you are trying to do this within the XSLT environment, you can
> apparently do something like (found in an article by Holger Will ):
> <xsl:if test="system-property('xsl:vendor')='Microsoft'">
> (insert stuff for IE and such)
>  http://www.treebuilder.de/default.asp?file=749340.xml
have a look at the named template for differentiating by browser, version
and release  you will see that in _addition_ I use:
- the UA-string
which makes it much more powerfull.
The only browser specific selection mentioned in the article by Holger Will
is in the head element. This can be done easily by using
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-
<?import namespace="svg" implementation="#AdobeSVG"?>
<head dr:select="not IE">
As I see browser detection on the server to be complicated ("sessions")
or unreliable, I would assume that many fallback solutions for SVG are
Could client-side, PI-triggered element selection with XSLT provide
a better alternative?
- Hi Manfred,
> I would assume that many fallback solutions for SVG areIf you are mixing SVG within XHTML, then I'm also not familiar with better alternatives, at least for now. Ideas and/or pointers, anyone? By the way, I've noticed a recent related thread  at the www-svg mailing list. ;-)
While using SVG content in separate containers, than you can statically specify a fallback. For example (pseudo-markup, not a functional sample):
<object type="image/svg+xml" ...>
alternate content such as an image and/or (textual) instructions on how to install a plug-in (or switch browser), link to page with more details, etc.
This will degrade gracefully, at least in most (all?) know browsers. More information available in a previous post  (and in several ones scattered around the mailing list).
Hope this helps,