if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
DITA and XMetaL Discussion
»
Change HTML TOC to index.html
Pages:
1
« previous
next »
Print
Author
Topic: Change HTML TOC to index.html (Read 1916 times)
bzebian
Member
Posts: 27
Change HTML TOC to index.html
«
on:
June 30, 2009, 01:48:58 PM »
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:
<mapper type="glob" from="*${dita.input.filename}" to="*${args.xhtml.toc}${out.ext}"/>
Which pulls the args.xhtml.toc value from the map filename, while a bit earlier it says:
<condition property="args.xhtml.toc" value="index">
<not>
<isset property="args.xhtml.toc"/>
</not>
</condition>
Any suggestions on how I can keep from pulling the filename and just using the default value of index instead?
Logged
severin.foreman
Member
Posts: 29
Re: Change HTML TOC to index.html
«
Reply #1 on:
June 30, 2009, 01:59:19 PM »
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.
<mapper type="glob" from="*${dita.input.filename}" to="index${out.ext}"/>
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
Logged
bzebian
Member
Posts: 27
Re: Change HTML TOC to index.html
«
Reply #2 on:
July 13, 2009, 12:52:39 PM »
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.
Logged
bzebian
Member
Posts: 27
Re: Change HTML TOC to index.html
«
Reply #3 on:
July 13, 2009, 01:51:19 PM »
Got it. I added the following line to build_dita2xhtml.xml and commented out the existing mapper line:
<mapper type="merge" to="index.htm"/>
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.
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...