DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Change HTML TOC to index.html

  • bzebian

    Change HTML TOC to index.html

    Participants 2
    Replies 3
    Last Activity 13 years, 9 months ago

    I want to always have the TOC file for the multiple HTML output to be named index.html. I see this is controlled by the args.xhtml.toc argument, and in the buildtargets code it says:

           

    Which pulls the args.xhtml.toc value from the map filename, while a bit earlier it says:


       
         
       

     

    Any suggestions on how I can keep from pulling the filename and just using the default value of index instead?

    Reply

    severin.foreman

    Reply to: Change HTML TOC to index.html

    Why not just replace ${args.xhtml.toc} in the mapper with the literal value “index”? It should work, but you'll have to do it again the next time you upgrade XMetaL or the version of the OT that XMetaL uses.

    Disclaimer: Usually a mapper is used when processing more than one file. Having not seen the rest of the target, I cannot say which other files, if any, might be affected.

    Best regards,
    Severin Foreman

    Reply

    bzebian

    Reply to: Change HTML TOC to index.html

    Thanks, but that didn't work. Also tried changing the value in the command line invoker file. It looks like some other file other than build_dita2xhtml.xml or ditatargets.xml might be setting this, but I can't find where. According to the DITA OT doc., it should default to index.

    Reply

    bzebian

    Reply to: Change HTML TOC to index.html

    Got it. I added the following line to build_dita2xhtml.xml and commented out the existing mapper line:

               

    Interesting if I make the to value “index.html” it reverts to the using the input file name as the toc name, but if I use index.htm it doesn't.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support