[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Can XSL recognize IE5 versus Netscape?


Subject: Re: Can XSL recognize IE5 versus Netscape?
From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
Date: Wed, 10 May 2000 12:52:13 -0400 (EST)

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@xxxxxxxxxxxxxxxx
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



Current Thread
Keywords