Subject: [xsl] Cross browser PIs From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Thu, 13 Dec 2001 21:33:54 -0000 |
Just thought I would pass this on if you are writing xml with stylesheet PIs and you want them to work cross browser Msxml old versions: will use the first xml-stylesheet PI in the document to transform regardles Msxml new versions: will honour the alternate="yes/no" pseudo attribute in the document to transform Netscape new versions: will use the last xml-stylesheet PI in the document to transform regardles So if you have 2 or 3 stylesheets MS-TR-WD.xsl MS-XSL-Transform.xsl NS-XSL-Transform.xsl <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" title="old msxsl version" href="MS-TR-WD.xsl" alternate="yes" media="screen"?> <?xml-stylesheet type="text/xsl" title="new msxml version" href="MS-XSL-Transform.xsl" alternate="no" media="screen"?> <?xml-stylesheet type="text/xsl" title="any new version" href="XSL-Transform.xsl" alternate="yes" media="screen"?> <?xml-stylesheet type="text/xsl" title="netscape new version" href="NS-XSL-Transform.xsl" alternate="yes" media="screen"?> <hunky-dory /> Everyone will be happy ;-) Well as happy as anyone can be with netscape... Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] outputting   to HTML, Charly | Thread | RE: [xsl] xsl:param and replace.xsl, Hunsberger, Peter |
RE: [xsl] access java from xslt, Michael Kay | Date | Re: [xsl] outputting   to HTML, Charly |
Month |