|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: RE: local extremums - is css
> > > 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








