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

Re: Re: RE: local extremums - is css

Subject: Re: Re: RE: local extremums - is css
From: "Bix" <bix_xslt@xxxxxxxxxxx>
Date: Wed, 19 Mar 2003 10:29:51 -0600
bix re
> > > I want to include the css as a separate stylesheet file. The css
> > > file should be placed in the same folder as the other stylesheets.
> > >
> >
> > It's bad form to piggyback an unrelated question on a existing thread.
> Doing that makes it difficult to follow the discussion. That being said,
> here is how to solve your problem.
>
> apologize for this.. forgot to change the subject line.
>
> > include this line the <head> element of your xslt:
> > <link rel="stylesheet" href="../css/ss.css" type="text/css"
media="screen"
> />
>

This is the correct syntax.  If you show more of your xslt file, it may be
easier to debug.  The following example works just fine using saxon.

<x:stylesheet version="1.0" xmlns:x="http://www.w3.org/1999/XSL/Transform">
    <x:output method="html" indent="yes"/>
    <x:template match="/">
        <x:element name="html">
          <x:element name="head">
            <x:element name="link">
              <x:attribute name="rel">stylesheet</x:attribute>
              <x:attribute
name="href">path/to/your/css/file.css</x:attribute>
              <x:attribute name="type">text/css</x:attribute>
            </x:element>
          </x:element>
          <x:element name="body">
              <x:comment>put the rest of your transformation information
here</x:comment>
          </x:element>
        </x:element>
    </x:template>
</x:stylesheet>


~~~~~~ output ~~~~~~

<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

      <link rel="stylesheet" href="path/to/your/css/file.css"
type="text/css">
   </head>
   <body>
      <!--put the rest of your transformation information here-->
   </body>
</html>



bix





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


Current Thread
  • RE: RE: local extremums, (continued)
    • David . Pawson - Wed, 19 Mar 2003 09:53:55 -0500 (EST)
      • TP - Wed, 19 Mar 2003 10:19:49 -0500 (EST)
    • cknell - Wed, 19 Mar 2003 10:13:39 -0500 (EST)
      • TP - Wed, 19 Mar 2003 10:29:26 -0500 (EST)
        • Bix - Wed, 19 Mar 2003 11:28:06 -0500 (EST) <=
    • Evgenia Firsova - Thu, 20 Mar 2003 09:37:10 -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-2013 All Rights Reserved.