HTML5 CSS path wrong in output
Posted: Sat May 09, 2020 1:05 am
Hi, I have a project that renders fin when I transform the main ditamap, but the CSS links in the HTML do not point to the correct file path when I try to transform one of the child maps.
My main ditamap is at the root of my project, and the child ditamaps are in their respective ChapterNN/<child-map> folders. I have the following paramters set:
args.css = <name of CSS file>
args.cssroot = <absolute path to CSS folder, using ${pd} variable>
args.copycss = yes
generate.copy.outer = 3 (this is required to get the index.html files to point to the correct locations)
The CSS file gets copied to the ${pd}/out/html5 folder. But the links in my HTML files point to the following location:
<link rel="stylesheet" type="text/css" href="commonltr.css"><link rel="stylesheet" type="text/css" href="patc.css">
How can I get the HTML files to point to the correct CSS files?
Eric
My main ditamap is at the root of my project, and the child ditamaps are in their respective ChapterNN/<child-map> folders. I have the following paramters set:
args.css = <name of CSS file>
args.cssroot = <absolute path to CSS folder, using ${pd} variable>
args.copycss = yes
generate.copy.outer = 3 (this is required to get the index.html files to point to the correct locations)
The CSS file gets copied to the ${pd}/out/html5 folder. But the links in my HTML files point to the following location:
<link rel="stylesheet" type="text/css" href="commonltr.css"><link rel="stylesheet" type="text/css" href="patc.css">
How can I get the HTML files to point to the correct CSS files?
Eric