[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: CSS

Subject: Re: CSS
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 2 Apr 2002 10:12:09 +0100
Re:  CSS
Hi Alia,

> How can I use XSLT to add CSS stylesheet to XML documents for view
> in a browser?

It's probably easiest just to link the CSS stylesheet to the XML
document directly using an xml-stylesheet processing instruction in
the XML document:

<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<doc>
  ...
</doc>

You could use XSLT to add the processing instruction if you wanted,
with an xsl:processing-instruction instruction, but I don't see any
real reason you'd want to do that.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • CSS
    • Alia Mikati - Tue, 2 Apr 2002 03:14:41 -0500 (EST)
      • Jeni Tennison - Tue, 2 Apr 2002 04:07:18 -0500 (EST) <=
      • <Possible follow-ups>
      • Alia Mikati - Tue, 2 Apr 2002 03:27:55 -0500 (EST)
      • Alia Mikati - Tue, 2 Apr 2002 03:47:43 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.