OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] CSS XSL Tranformation

[ Lists Home | Date Index | Thread Index ]

Thats it!
* in the words of homer Simpson - "Dohh!" *
 
Hey thanks... that was easy enough : )
 
Karl
-----Original Message-----
From: Jeffrey Winter [mailto:j.winter@niteo.com]
Sent: Wednesday, July 31, 2002 3:55 PM
To: Karl Stubsjoen
Subject: Re: [xml-dev] 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: [xml-dev] 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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS