You are viewing this page out of context. To see it in the context it is intended please click here.
About This Page
Reply posted by Marek Nowicki on Wed 23 Oct 2002 in response to Putting Domino's XML to use
Re: Netscape 7.0 does not apply xsl to xml doc
It looks like Netscape needs mime type for both source and stylesheet to be setto a XML mimetype (text/xml).
In my application (which works on IE) I had <?xml-stylesheet type="text/xsl"
href="Admin/xsls/Proposal2"?>
(where Admin/xsls is a view and Proposal2 a key to retrieve the correct xsl).
To satisfy Netscape I've created a simple agent called SetXMLMimeType which had:
Print "Content-Type:text/xml; iso-8859-1"
before printing xsl from the Proposal2 document - so my reference to the
stylesheet is now:
<?xml-stylesheet type="text/xml"
href="SetXMLMimeType?OpenAgent&DocKey=Proposal2"?>.
There was a small problem with '&' as my main stylesheet (Proposal2) had an
xsl:include which had to be changed to:
<xsl:include href="SetXMLMimeType?OpenAgent&amp;DocKey=Products2" /> .
IE does not like type="text/xml" in '<?xml-stylesheet ...' so for now I will
have 2 ways of assigning stylesheets
(one for IE one for Netscape) - 'xsl:include' solution works for both browsers!