Re: [xsl] Select statement within HREF

Subject: Re: [xsl] Select statement within HREF
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 31 Oct 2003 15:37:34 GMT
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