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

Re: Select statement within HREF

Subject: Re: Select statement within HREF
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 31 Oct 2003 15:37:34 GMT
styling select statements
Why do you need the styling to be done on the client rather than on the
server?

If you do it on the server you can control which stylesheets are
applied to which files, without editing any of the files.
Eg something like apache cocoon.

If you do it on the client you probably need the PI on each file (how
else will the client know it is supposed to transform anything?)
But you don'tneed to copy teh stylesheet into each folder, just make
sure that the href in xml-stylesheet points to teh right place.

Given your description "When you click on F11" It seems you do want a
link so I don't understand your previous comments about inlining at all,
which seemed to imply that you wanted the result of transforming the
document F11  to be included in place in the result document for F1.
If that was what you wanted then the document() function is desugned to
do that. If you have a link then as usual on teh web the browser doesn't
remember any state, you make a new http request for a new document, so
the fact that the requesting document was styles with your stylesheet is
irrelevant, you need to tell the browser to style the new document,
hence the need for the PI. This is as it should be, you don't normally
expect pages to look different depending on where you came from. (I know
it's possible using session variables/cookies etc but it is normally
considered bad practice)


David


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________

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


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.