Printerfriendly webpage

R

rene.castberg

Hi,

I have some webpages where i use xsl to display an xml document in the
web browser.
The problem arrises when i try to print the page, the images are too
large and the print out looks aweful.
What i would like to do is create a link on each page which points to a
printer friendly version.
I need some way of specifying which xsl file to use depending on
whether its a print version or to be displayed. I found out that the
browser i use doesn't support the media entry in the stylesheet
refference.
Can anybody point me to a site where i can get an example on how to
achieve this.

Any help would be appreciated.

René Castberg
 
B

Bart Van der Donck

I have some webpages where i use xsl to display an xml document in the
web browser.
The problem arrises when i try to print the page, the images are too
large and the print out looks aweful.
What i would like to do is create a link on each page which points to a
printer friendly version.
I need some way of specifying which xsl file to use depending on
whether its a print version or to be displayed. I found out that the
browser i use doesn't support the media entry in the stylesheet
refference.

One way to do this could be the use of a parameter after the url, which
then can be read out to decide which markup file is to load depending
on its value.

See eg
PHP's $QUERY_STRING
Javascript's location.search.substring(1)
Perl's $ENV{QUERY_STRING}
etc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top