Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7158 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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>

This topic is 7158 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.