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

RE: how to insert/include the text/data in a separate

Subject: RE: how to insert/include the text/data in a separate (but local) .css file into an HTML O/P using XSL
From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx>
Date: Thu, 2 Oct 2003 14:03:46 -0500
css insert text
This is what I have done as per your suggestion.

<!DOCTYPE xsl:stylesheet [
<!ENTITY qspcss SYSTEM "qsp.css">

<style type="text/css">

Works like a charm :). Not a biggie but maybe this should go into Dave
Pawsons FAQ as:

"Adding a .CSS to the output of your HTML-XSL " or something of the

Thanks David.

Abhishek Sanwal
HP - Houston Campus

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Thursday, October 02, 2003 11:18 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  how to insert/include the text/data in a separate
(but local) .css file into an HTML O/P using XSL

> I am curious as to how I can add the .css material from a separate
> file into the HTML <HEAD></HEAD> .

you can't do this in pure xslt1 although xslt 2 draft does have a
have a function for reading text files rather than xml ones.

Some processors have extension functions to do this (and it would be
easy to do in a any of teh java ones or msxml that let you escape to
some other language to pull in the file) or if your parser supports
xinclude you could use that.

> I tried and <xsl:include> and <xsl:import> don't work.
well they are compile time directives for including xsl stylesheets.
What you want is not that but a version of the document() function for
plain text. this has been added in xpath 2 draft.

If your css doesn't contain & or < then you can go
<!DOCTYPE xsl:stylesheet [
<!ENTITY css SYSTEM "mycssfile.css">




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

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

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

Current Thread


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.
First Name
Last Name
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-2013 All Rights Reserved.