I'm just wondering if it is a proper practice to link css files to XSL files. For example, I want a special formatting class for my table.
If so, how do you add it to the XSL file?
Thanks.
>wondering if it is a proper practice to link css files to XSL files
Not sure understand the meaning of it. If you mean using xsl to produce a link in the output document, sure you can make one with some template.
well the thing I wasn't sure about was that I know you use css to format html pages and xsl to format xml pages.. so if I wanted to transform a xml file to html using xsl is there some way to embed css files in there (for stuff like table borders, font, etc.)
Maybe something figuratively like this to clear up the reasoning.
[tt]
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" type="text/css" href="abc.css" />
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
[/tt]
You just make one link up for the html output document to reference to.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.