April 17, 200520 yr Hi! I'm new to XML but trying out FM Site Assistant and it works OK. Does anyone know the correct syntax for linking a CSS file to a XSL file? Tried both LINK href="mystyle.css" rel="style sheet" type="text/css" and ?xml-stylesheet href="mystyle.css" type="text/css"? without luck. Read on W3C that the latter could be placed anywhere in the prolouge but nope. And I tried putting the CSS file in both the web root and in the xsls-template folder (what is correct?). Regards!
April 18, 200520 yr Put your CSS in your web root folder or in a subfolder of it, as you should do with all static files. Because the XSLT stylesheet is called with a URL like "/fmi/xsl/something.xsl", the link to the CSS should be then: <link rel="stylesheet" type="text/css" href="/mystyle.css"/> As always, place this tag somewhere between <head> and </head>
Create an account or sign in to comment