Hi,

sorry to take so long to answer your question, but I'm busy. Take a look at

http://itextdocs.lowagie.com/tutorial/rtf/features/toc/index.php#

to see how TOCs work in the RtfWriter2. I unfortunately have no experience 
using the XML input, so I can't provide any help there on what just works and 
when you need your own parser.

Mark

On Thursday 28 February 2008, Sushil Vegad wrote:
> Hello,
>
>
>
> We have our data in XML file that is being parsed to create a RTF file. We
> would like to create a TOC for the RTF file where the Title of each chapter
> needs to come up in the TOC
>
>
>
> Our TagMap file looks like this
>
> <tagmap>
>
>       <tag name="chapter" alias="topic">
>
>             <attribute name="size" value="11" />
>
>       </tag>
>
>       <tag name="title" alias="title">
>
>             <attribute name="size" value="14" />
>
>       </tag>
>
> ........
>
> </tagmap>
>
>
>
> Our XML data file looks like
>
> <topic>
>
> <title>One</title>
>
> <div><p>Topic data goes here..</p></div></topic><topic>..</topic>
>
>
>
> In the tagmap file, can I specify an attribute for the title tag that will
> render it like 'Heading 1', 'Heading 2' etc.
>
> Or do we need to write our own parser?
>
>
>
> Thanks,
>
> Sushil



-- 
Your supervisor is thinking about you.

My GPG public key is available at:
http://www.room3b.eu/data_box/download?path=%2Fsecurity%2FMarkHall.asc

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to