[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

PI and Cocoon

Subject: PI and Cocoon
From: "Martin Algesten" <martin.algesten@xxxxxxxx>
Date: Tue, 28 Mar 2000 10:37:53 +0100
cocoon pi
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 <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.