This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Can XSL recognize IE5 versus Netscape?
- To: xsl-list at mulberrytech dot com
- Subject: Re: Can XSL recognize IE5 versus Netscape?
- From: Tony Graham <tgraham at mulberrytech dot com>
- Date: Wed, 10 May 2000 12:52:13 -0400 (EST)
- References: <33DDC954510AD411B46400A0C9C732D6048EB4@exch-klip.btg.com>
- Reply-To: xsl-list at mulberrytech dot com
At 10 May 2000 11:57 -0400, Medina, Edward wrote:
> I'm wondering if there something that I can do with XSL that
> if IE5 is being used then do this, if Netscape is being used
> then do that! Just like the choose/when elements of XSL.
>
> The reason I'm asking (and I know you are going to ask why
> would I want to do that), is that every time I get something to
> display right in IE5 in doesn't look right in Netscape and
> viceversa. Any suggestions?
In http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl, I
used multiple namespaces and <choose> elements in each namespace to
control the output. The stylesheet relies on web browsers ignoring
non-HTML elements, since for each namespace, the elements in the other
namespace are literal result elements that are copied to the result
tree.
Regards,
Tony Graham
======================================================================
Tony Graham mailto:tgraham@mulberrytech.com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9632
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list