DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Change HTML TOC to index.html
-
bzebian June 30, 2009 at 7:48 pm
Change HTML TOC to index.html
June 30, 2009 at 7:48 pmParticipants 2Replies 3Last Activity 13 years, 9 months agoI 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?
severin.foreman June 30, 2009 at 7:59 pm
Reply to: Change HTML TOC to index.html
June 30, 2009 at 7:59 pmWhy 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 Foremanbzebian July 13, 2009 at 6:52 pm
Reply to: Change HTML TOC to index.html
July 13, 2009 at 6:52 pmThanks, 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.
bzebian July 13, 2009 at 7:51 pm
Reply to: Change HTML TOC to index.html
July 13, 2009 at 7:51 pmGot 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.
-
AuthorPosts
- You must be logged in to reply to this topic.