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

 

 

-------------------------------------------------------------------------
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