cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

CSS path in DITA web export

pchateil
7-Bedrock

CSS path in DITA web export

Hi everybody,

This list never ceased to be a great source of information,
so I hope I can also find help for this.

We are building a custom DITA setting (with the APTAPPLICATION variable)
We use "Compose to web" from styler (5.4 M090) with a custom frameset
to export HTML files.

We were able to configure many parameters, but the css stylesheet is created
in a css directory in the output directory and we didn't find a way
to change that (for example to : ressources/stylesheet)

Is anyone know how to configure the css export path ?

Thanks,

Pierre Chateil
LCI TechPub Sud-Ouest
Tel : + (33) 5 59 77 77 27

2 REPLIES 2
bibach
1-Visitor
(To:pchateil)

Unfortunately, the path in which CSS files are stored during web
composition was not intended to be configured, so there's no simple
way to change it.

That said, it could be done with some custom coding of the composition
pipeline. It probably wouldn't be a lot of code, but it would be
non-trivial to develop.

-Brandon 🙂


On Mon, Jun 6, 2011 at 7:12 AM, Pierre Chateil <chateil@lci-so.com> wrote:
> Hi everybody,
>
> This list never ceased to be a great source of information,
> so I hope I can also find help for this.
>
> We are building a custom DITA setting (with the APTAPPLICATION variable)
> We use "Compose to web" from styler (5.4 M090) with a custom frameset
> to export HTML files.
>
> We were able to configure many parameters, but the css stylesheet is created
> in a css directory in the output directory and we didn't find a way
> to change that (for example to : ressources/stylesheet)
>
> Is anyone know how to configure the css export path ?
>
> Thanks,
>
> Pierre Chateil
> LCI TechPub Sud-Ouest
> Tel : + (33) 5 59 77 77 27
>
>

It took time, but we managed to change the default path in the comp_web.acl file (packages/tools, modified in custom/scripts ).
Not so hard when you find the right file.


The same goes for the default output graphic path.


For the web output, we need an onload attribute on the html tag and some <meta> tags in the <head> tag.
We managed to insert a custom script in the header from the styler stylesheet (with a custom XSL-web source) but <meta> tags are ignored.
We didn't found where the tag was set.


Any clues ?



Pierre




In Reply to Brandon Ibach:


Unfortunately, the path in which CSS files are stored during web
composition was not intended to be configured, so there's no simple
way to change it.

That said, it could be done with some custom coding of the composition
pipeline. It probably wouldn't be a lot of code, but it would be
non-trivial to develop.

-Brandon 🙂


@On Mon, Jun 6, 2011 at 7:12 AM, Pierre Chateil <chateil@lci-so.com> wrote:
> Hi everybody,
>
> This list never ceased to be a great source of information,
> so I hope I can also find help for this.
>
> We are building a custom DITA setting (with the APTAPPLICATION variable)
> We use "Compose to web" from styler (5.4 M090) with a custom frameset
> to export HTML files.
>
> We were able to configure many parameters, but the css stylesheet is created
> in a css directory in the output directory and we didn't find a way
> to change that (for example to : ressources/stylesheet)
>
> Is anyone know how to configure the css export path ?
>
> Thanks,
>
> Pierre Chateil
> LCI TechPub Sud-Ouest
> Tel : + (33) 5 59 77 77 27
>
>
Announcements

Top Tags