This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PI and Cocoon


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]