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

Re: Server Side Including an XSL Formatted XML

Subject: Re: Server Side Including an XSL Formatted XML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jan 2005 17:36:32 GMT
well formatted xml
If you are wanting the XSLT to execute on the client's browser, then
your server has to serve a well formed XML file with the stylesheet PI
at the top. The fact that the document that is served came from various
places on your filesystem put together by server side includes isn't
"known" to the browser. So your serevr side includes have to produce a
well formed XML (not HTML) file such that when you "view source" in teh
browser it is a well formed XML file starting with the xml-stylesheet
PI. the stylesheet must then convert the whole document (not just the
part included from your xml file) to html. Both the document and the
style file will need to be served with a suitable mime type eg
application.xml not text/html (mozilla won't dislay anything at all if
the mime types are wrong, IE is less fussy).

Alternatively (and probably better) you can do the transform on the
server (details depending on your server configuration) so that you 
transform your xml to html, and include teh generated html into teh rest
of your document with ssi. That way teh result will work with far more
browsers as they do not need to have XSLT support.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread

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.