Mr Initial Man
06-19-2007, 11:05 PM
Is it possible to link an XML document to one XSL file for display on the screen and another for printing?
|
Click to See Complete Forum and Search --> : Media-specific XSL? Mr Initial Man 06-19-2007, 11:05 PM Is it possible to link an XML document to one XSL file for display on the screen and another for printing? Stephen Philbin 06-20-2007, 04:58 AM Mmmmmmmm. Linkalicious (http://www.w3.org/Style/styling-XML#External). Mr Initial Man 06-20-2007, 08:32 AM For some reason, it doesn't seem to work with XSL style sheets. :-/ Stephen Philbin 06-20-2007, 09:09 AM In just one browser, or all of the ones you can lay your hands on? Remember that Firefox ignores external entities who's address does not start with "chrome://" or something stupid like that. Maybe it's doing the same thing here? Is your XSL being applied to all media, or not being applied at all? Mr Initial Man 06-20-2007, 06:11 PM It's using the XSL for the screen for both print and screen. Mr Initial Man 06-20-2007, 07:14 PM EDIT: Opera and IE aren't showing anything to print. Stephen Philbin 06-21-2007, 04:08 AM I guess they probably haven't had those bits of 'em built yet then. If you really need it, then maybe you could try a rather rough hack in sticking a link or style element in there under the xhtml namespace (remembering to to use the correct content type in the attribute, rather than text/css). Maybe that would work? Mr Initial Man 06-29-2007, 05:53 PM What do you mean? Stephen Philbin 07-01-2007, 06:10 AM Like <html:style type="text/xsl (or whatever the right type is)" media="print">@import url(print_styles.css);</style> I know it'd be a pretty ugly work-around, but you never know, it might work. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |