Calling a CSS file: the XSLT way.
I said in my last post that I would show how to call CSS in our gallery. Normally when we call a CSS file we would use the standard call tag:
As per my last post, note the trailing ‘/’ which closes the link tag.
This seems to work fine as a call inside transformer.xslt on mac but causes issues on PC. Therefore we need a correct way to call our file that works on both. Here’s some sample code from the ‘RollOver’ gallery I’ve working (not completed yet-I still can’t get the first image preloaded!). This part shows the initial calls defining the Paths and the then head section, where I use
The is just there to call the javascript for this particular gallery and not needed for the CSS call. I’ve left it in for completeness in relation to the gallery I’m doing this call on.
The xsl:template that is being called to make this happen is below:
You place this code below the of the ‘index.html’ template call and above the at the end of the file. The call to ‘scrollextra.css’ is simply the filename of the CSS I’m using in this gallery.
Again hope this helps.
Can you fix the focus on a blurry photo after the fact?
The birth of Mirrorless Cameras
Choosing your first dSLR camera
New York City can be beautiful!
The Fujifilm Finepix X10, A Review
Choosing the Right Light Stand
Photojojo iPhone Telephoto Lens review — AudioCast
My week with Q
How To Become A Successful Photographer
"When the Wind Stopped" — poem with 4 photos
Tips for Textures
Butterflies in Motion
Cast aways - saving those photographic memories
One Man Show: My 25 Years With Digital Photography
Studio, Flash, & Available Light — Three Books Reviewed
Portrait styling: dangerous pairings
Adobe Photoshop CS6 Product Managers Interview Audiocast
A gift of flowers: unfold your senses
On Set of "Love & Robots" the Film
Ilford Galerie Gold Fibre Silk Inkjet Paper — Audiocast











Planning “National Geographic” style photo travel
Wilderness Travel 1 Rainforests – Essential Gear
Backlighting Basics
A Brief History Of Light & Photography: Part 3 of 3
A Brief History Of Light & Photography: Part 2 Of 3
What Moves You?
FIGURES IN MOTION: Decades of Evolving Personal Imagery in Photography, Part 7
Lomography Store, Austin, Texas — GALLERY
GALLERY — Up to $1,000 Reward for Cattle Rustlers
eyePhone: The eBook for iPhone Photographers
Taking your Portraiture Higher
Interview with Harold Davis — Closeup Maestro of Flowers & Water Drops
Interview with Steve Caplin — Photoshop Digital Artist, Commercial Illustrator, & Author
Easy technique to select, edit and sequence keywords for web
How much should you charge for a photograph?



























Comments
href=”/test/common/css/common.css” in link tag
This work fine in all browsers but in mac causes issues on PC.
Can you please help me i am working on xml using xslt in .net
That path is an absolute one and may be what’s causing the issue.
Post new comment