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

RE: CSS XSL Tranformation

  • To: "Jeffrey Winter" <j.winter@n...>,"Xml-Dev" <xml-dev@l...>
  • Subject: RE: CSS XSL Tranformation
  • From: "Karl Stubsjoen" <karl@e...>
  • Date: Wed, 31 Jul 2002 16:36:38 -0700
  • Importance: Normal
  • In-reply-to: <001501c238e5$4f973110$6401a8c0@winter>

css xsl
Thats it!
* in the words of homer Simpson - "Dohh!" *
 
Hey thanks... that was easy enough : )
 
Karl
-----Original Message-----
From: Jeffrey Winter [mailto:j.winter@n...]
Sent: Wednesday, July 31, 2002 3:55 PM
To: Karl Stubsjoen
Subject: Re: CSS XSL Tranformation

Karl,
 
Are you saying that you want the resultant HTML to have a link to an external CSS file in it?   If so, there's no reason why you can't simply add in a normal HTML <link> element, like any other HTML markup you have in the XSL.  See below.
 
If this *isn't* what you're asking, let me know ....
 
- Jeff
 
 
[minus all the header stuff]

  <xsl:template match="/">
    <html>
      <head>
        <link href="your_external_stylesheet.css" rel="stylesheet" />
     </head>
      <body>
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>
----- Original Message -----
To: Xml-Dev
Sent: Wednesday, July 31, 2002 6:34 PM
Subject: CSS XSL Tranformation

Hello,
I'm using MSXML2 and VB to tranform an XML document into an HTML document, and then serializing the new HTML file to disk.  All is working great, however I'd like to also include CSS reference in my newly transforemed HTML doc but am not sure how to go about accomplishing this.  Including a style sheet referencee in my XML doc does nothing and I'm not sure how to add the CSS reference during tranformation.  Would it become an XSL tranformation?  If so, how would you right this, a CSS link to an external CSS file.
Thanks!
 
Karl

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.