Skip to main content
7-Bedrock
Jun 6, 2011 11:12 AM UTC
Question

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

    1-Visitor
    Jun 13, 2011 5:07 PM UTC
    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
    >
    >
    Translate
    pchateil7-BedrockAuthor
    7-Bedrock
    Jun 20, 2011 2:25 PM UTC

    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
    >
    >
    Translate