This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: XSL and CSS


you've applied your book template in the header of the html page
shouldn't it be in de body of the page

perhaps you mean to do this (i also added a xsl:output tag) :

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:output method="html" version="4.0" indent="yes" omit-xml-declaration="yes" />

<xsl:template match="/">
<HEAD>
 <LINK REL="stylesheet" TYPE="text/css" HREF="books1.css"/>
</HEAD>
<BODY>
<xsl:apply-templates select="books/book" />
</BODY>
</xsl:template>
...
...
</xsl:stylesheet>

HTH,
Gertjan

-----Original Message-----
From: Alia Mikati [mailto:Aliam@investcomholding.com]
Sent: donderdag 28 maart 2002 11:31
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] XSL and CSS


Hello
I have this xsl file that includes a link to a CSS stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/">
<HEAD>
<xsl:apply-templates select="books/book" />
 <LINK REL="stylesheet" TYPE="text/css" HREF="books1.css"/>
</HEAD>
</xsl:template>
...
...
</xsl:stylesheet>

Everything is working and I'm getting the appropriate output when 
applying XSL to XML file except that it's not applying the CSS stylesheet.
What do u think could be the problem?

Thx a lot



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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]