Peter Rossbach wrote:
Hey,
I think your browser is the problem. Generate absolute css link that help
% String url = request.getScheme() + :// + request.getServerName() +
: + request.getServerPort() + request.getContextPath() ; %
link rel=stylesheet type=text/css
Xalan or Saxon have no 'base' from which to determine
the context for the css file, so you'll have to use
an absolute file reference from the stylesheet.
Came up on the Saxon list this week.
Its for the document() function, but the same logic applies.
HTH DaveP
quote
It appears that I must use
for helpful pointers.
Best,
William BC Crandall
bc.crandall [around] earthlink.net
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 12 July 2004 1:18 AM
Subject: RE: Finding CSS files in webapp
Xalan or Saxon have no 'base' from which to determine
the context
Hey,
I think your browser is the problem. Generate absolute css link that help
% String url = request.getScheme() + :// + request.getServerName() +
: + request.getServerPort() + request.getContextPath() ; %
link rel=stylesheet type=text/css
href=%=url%/css/nrd.css /
regards
peter
Hello
I have no knowledge of XSLT-generated XHTML pages, but I make extensive use
of the header 'BASE' tag and my CSS files always come through, so you may
want to consider that option.
html
head
...
base href=https://www.my-domain-name.com/my-web-app-name/;
link
Greetings fellow Tomcat dancers,
Been losing cycles in a gumption trap, trying to hook a CSS file
up to XSLT-generated XHTML pages. Many thanks to whomever sees
my obvious error.
If I hardwire the full-path filename of my development environment
into the XSLT file, all works as