On 07/28/2012 07:09 PM, Lea Hayes wrote:
>
> How would I go about generating an XML (or better a JSON TOC) when
> generating XHTML output?
>
> The schema of the TOC is unimportant, I just need the hierarchy, the
> file name and the hash id which I can then feed to some custom PHP
> scripts. I was hoping to scrape one from one of the output formats, but
> I cannot seem to find one.
>

There is no need to mess with one of the output formats. If you run:

ditac -preprocess ...all your other command-line options here...

this generates a file called ditac_lists.ditac_list. This file contains 
the TOC you want (among many other info).

More information in: 
http://www.xmlmind.com/ditac/_distrib/doc/manual/howItWorks.html



---
PS: Please note that ditac support is in principle limited to *formal* 
*bug* *reports*.

See http://www.xmlmind.com/ditac/support.html#ditac_support_policy.

Therefore I'm sorry but I cannot answer to your questions anymore.

 
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to