PI and Cocoon

Subject: PI and Cocoon
From: "Martin Algesten" <martin.algesten@xxxxxxxx>
Date: Tue, 28 Mar 2000 10:37:53 +0100
I was attempting to do something like

<xsl:variable name="url" select="'http://localhost/myfile.xml"/>
<xsl:variable name="thefile" select="document($url)"/>

and didn't get it to work..

I think I've located the problem to be cocoon. Even though my xml-file
doesn't contain any PI's, the document I get out is formatted to something
like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
                      "http://www.w3.org/TR/REC-html40/strict.dtd>
...
..

Now if I point my browser to myfile.xml I would like to apply the
style-sheets i have specified, but if I read it locally with document() I do
not want it.... how can I get this behaviour?

Martin



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • PI and Cocoon
    • Martin Algesten - Tue, 28 Mar 2000 10:37:53 +0100 <=