xsl-list
[Top] [All Lists]

Re: IE's conditional comments in xslt

2006-03-04 03:01:36
On 03/03/06, M. David Peterson <m(_dot_)david(_at_)mdptws(_dot_)com> wrote:
Here's a slightly less complex way to accomlish the task at hand:

        <xsl:comment><![CDATA[[if lt IE 7]>
        <script src="/scripts/ie5.js" type="text/javascript">//*
imported via src attribute *//</script>
        <style type="text/css">
          @import "/browser/ie5/base.css";
        </style>
        <![endif]]]></xsl:comment>

CDATA is restricting you to very simple solutions. So why not limiting
the CDATA to the CC-stuff only? Your example would then look like:

        <xsl:comment><![CDATA[[if IE]><![if lt IE 7]><![endif]]]></xsl:comment>
         <script src="/scripts/ie5.js" type="text/javascript">//*
 imported via src attribute *//</script>
         <style type="text/css">
           @import "/browser/ie5/base.css";
         </style>
        <xsl:comment><![CDATA[[if IE]><![endif]><![endif]]]></xsl:comment>

See the difference?

Manfred

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>