[Home] [By Thread] [By Date] [Recent Entries]

  • 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>

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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member