Table of Contents based on XML Tag

Hi,
I have created a catalogue containing over 100 pages.
All of the pages were populated using an XML file.
Each page has a Title tag populated through XML
Is it possible to create a Table of Contents based on the XML tag of Title?

Perhaps by script (try InDesign Scripting) but ID's own TOC ustility is driven entirely by paragraph styles.

Similar Messages

  • How to read entire file content in one XML tag?

    Hi,
    How can I read entire file content in one XML tag?
    What specifications do I need to specify in Sender adapter?
    regards,
    Anirudh.

    Hi Chirag,
    I am reading a flat file for File to Idoc scenario.
    Target Idoc is nested which can not be populated with graphical mapping.
    see below post for more detail.
    [Mapping flat XML to nested IDOC using node functions |Mapping flat XML to nested IDOC using node functions;
    The problem here is I'm not able to identify when to insert context change for child which is repeating for a repeating parent.
    Solution therefore, I think is reading entire flat structure in one node and then use UDF to populated intermediate target with proper nesting.
    Thats why I need to read entire XML.
    regards,
    Anirudh.

  • How can I add text to a field based on XML tagging?

    I'm fairly new to using XML in InDesign layouts, and I'm currently facing an issue getting a bunch of content from database records formatted in a print document (text that flows over dozens of pages). I've figured out how to create an InDesign template, but I need to be able to add text between some of the XML elements in two different scenarios:
    1. Add text or line breaks before or after an XML element that always appears in the document. For example: Adding "Description:" before the XML-tagged description content, or adding a return after the last element in a list.
    2. Add text before or after an XML element only if it appears in the document. For example: If there's a second phone number, tagged "Phone2" in the XML, then I want " or " to appear before it in the layout. Otherwise there's just one phone number and it continues on to the next piece of content.
    I have tried inserting this text into the InDesign template, but keeping them means having to also keep parts of the template that aren't used on every import--so I have a bunch of "or Phone2" bits of text to find and replace afterward. That's OK, but I'd like a more elegant solution that doesn't leave potential mistakes in my layout.
    In my preliminary research so far, it looks like an XSLT or scripting might be able to handle this, but I don't know where to start. Can someone tell me if what I'm looking for is possible and suggest the best way to do it? I'm going to have to trial-and-error a solution for this myself.
    I am using ID CS6 on a Mac. Thanks in advance for your help.

    Thanks for your reply. The line that you mention is added at the top of the message, and includes the original sender's email. I would like my name to appear, next to each line I add in the text of the original mail.
    For example:
    Assuming my name is Joe Smith, what I would like to have as the final reply is described below.
    The lines that start with "[Joe Smith]" are my replies, to the original items in the original mail.
    On 21 Feb 2013, at 09:03, Jon Doe wrote:
    We need an effort estimation for thenew feature
    [Joe Smith] It will be about 2 days
    and additional resources needed
    [Joe Smith] 2 new icons

  • Table of Contents based on Character Style?

    Trying to do an annotated table of contents containing captions of all photos in a book, followed by verbose descriptions. Purpose is to avoid cluttering pages bearing the photos, which will have only a brief caption is followed by the name of the owner of the object in the caption, in the same paragraph.
    Book will include a listing of the captions in page order (i.e., table of contents) without the owner names, followed by verbose descriptions. Can I get around this by making character styles for each (caption, owner, respectively), and create a TOC based one character style? If not, can I configure the para. style of the caption to omit the line-feed, and base the TOC on that?
    Plan is then manually to add descriptions to each TOC entry, immediately following captions. Will that stay intact, if any subsequent photo locations are changed?

    Jack wrote:
    OK, have done that, and all required content is now showing up in the TOC.
    I'm glad you managed to sort that out.
    Is it possible to omit the line breaks between elements referring to the same page?
    Hmmm...the thing is...a paragraph is a paragraph is a paragraph. By nature, it breaks to the next line. There are ways to fake it but none (that I can think of) which will hold up to an automated TOC update. Maybe someone else will come along with a trick I don't know about.
    So then, for the moment let's assume the only way to get the caption and the description into the same TOC paragraph is to put them in the same paragraph on the document page. Also still assuming I truly understand the end-result you want; here's how I would do it:
    If you set the separate-but-threaded caption and description frames as I first proposed, you'll need to go back and take out the paragraph break between the caption and the description. It will have to be replaced by a simple "frame break" which will push the description (now the same paragraph and paragraph style as the caption), into its own hidden frame as before.If, in the TOC, you want the caption and the description to have differing formatting, it would also be useful to insert (between the caption and the description on the document page) an End Nested Style Here character before that frame break. (If the caption and the description can be formatted identically, you won't need this step, and they can simply be formatted by your simple TOC Entry Style paragraph style.)
    All above can be done using Find/Change. Find: End of Paragraph (^p). Change to: End Nested Style Here (^h) Frame Break (^R). So here's what it looks like in the dialog.
    If the captions and descriptions are the only text in your document, you probably get away with Change All, otherwise it may be best to step through finding and changing one instance at a time.
    Now if you update your TOC, the descriptions should be pulled up into the same paragraph as the captions.
    Take advantage of the Nested Style possibility to vary the formatting of the caption and description by adding a nested style to your TOC Entry Style. Set it to style the description portion of the entry. Then add a Nested Style and set a Character Style to format the caption portion of the entry... "through 1 End Nested Style Character".

  • Searching and Summing Based on XML Tags

    I'm considering storing XML documents in CLOB fields and using interMedia to manipulate them. Is it possible to search the XML and answer questions like "how many documents were produced in Illinois in the month of June 2000?" where <STATE> and <CREATE DATE> are XML tags? If so, how efficient is this? Would it be better to store likely search or grouping attributes as separate columns?
    Any thoughts, experiences would be appreciated.
    Byron Lee
    null

    You can do this using WITHIN. Putting the structured information into the text document is, in effect, denormalizing the schema, and can have big performance benefits. The problem is that interMedia Text doesn't do range-searching, so you can query on June within the date tag, but can't say '< July 1'. You might want to leave the structured information in separate columns, and dynamically add them to the text document as xml tags using the user-datastore.

  • Table of Contents based on numbered paragraphs

    I'm trying to get my TOC to show numbers from the document's numbered paragraphs instead of the page numbers (think song book with the titles as numbered paragraphs and possibly more than one song per page). By taking off the option to show the page number and formatting the entry style I can get the paragraph number first and the title second, but can't figure out how to switch the two. I'm using CS3.
    Thanks for your help!

    Perhaps by script (try InDesign Scripting) but ID's own TOC ustility is driven entirely by paragraph styles.

  • Can I create a custom table of contents and link to other .pdf files based on responses to a form?

    Hey Everyone! First post ever, so bear with me:
    I'm trying to create a streamlined method to use a form  to let myself and others add information and select certain options to put together a custom table of contents. Basically, I would like to have a form with a series of text fill and single/multiple choice options that will automatically populate a table of contents based on the selections and will link to other .pdf files that are associated with the selections. I was hoping this would be possible with a form, but I'm relatively new to the function of the software as a whole and my research came up short. Any suggestions on how to start are more than welcome, and if I wasn't quite clear enough I would be happy to elaborate.
    Thanks for your time!

    You would need to search for other PDF creation software that can accomplish what you desire.
    There are many cheaper  PDF creation alternatives other than Adobe's Acrobat Pro software.
    Also, try doing a web search under these terms to see if you can find an app/software/solution that may work for you.
    How to create table of contents in PDF files

  • Table of Contents bookmarks not exporting to PDF (CS5)

    I have a 200 page book made up of 15 documents.  I've created a table of contents based on paragraph styles and the TOC generates and formats correctly.  When I create the TOC, the Create PDF Bookmarks box is checked.  When I export the whole book I've tried it with Create Tagged PDF checked and unchecked.
    After I export to PDF from the Book palette, the TOC items are links (at least they give me the pointer-hand icon) but they don't go anywhere.  The only one that does is the one in the same document as the TOC.  (I have tried the TOC both within a chapter and also in it's own document with no other links in it).  The behavior is the same in the Bookmarks pane - all are shown but only one works.  I've looked at several of the bookmarks' Properties > Actions.  It says its "Going to a page in another document" > (document-name-of-the-correct-chapter-but-with-pdf-instead-of-indd.pdf) > Page 1 (this is correct) > Zoom level: actual size.
    This isn't right - it's pointing to an imaginary pdf that doesn't exist.  It should be pointing to page X in the current document.
    Here's what I've tried:
    * restarting InDesign
    * restarting my machine
    * deleting the TOC and regenerating it
    * generating the book with all documents open or all documents closed
    * moving the TOC to its own document
    * probably some other things I've forgotten in the struggle
    All of the links and references in the individual documents are good.
    I've looked around these forums and this seems to be an ongoing and unsolved issue for other folks using older versions.  This is the closest I came to finding an answer but ended up with an Adobe employee logging it as a bug in 2009.  Bookmarks not exporting from InDesign to PDF in CS4                     By (c_goates)
    So here's hoping there is some new information.  I've been trying to get this to work for far too long and don't relish drawing bookmark boxes around all 55 of my text links.
    Specs: Max OS 10.6.6, CS5 (Version 7.0)
    Sorry this is so long, but details help, usually.  Thanks in advance for any advice. 

    There are some known problems with bookmarks and CS5 as well. As far as I know, the 7.0.3 update won't fix them, but it does solve some other problems, so you should install it.

  • Table of Contents In Hyperion Reports

    <BR>Hi,<BR><BR>I setup a Hyperion Report with location used for pages. When I print report, I get the expected result of each page being a location I specified, and in the order I specified. I'd like to distribute same report as pdf, but incorporate a table of contents based on page definition in report. Page 1 would have my table of contents, page 2 would have the first location, page 3 the second location, etc. Is this feasible?<BR><BR>Thanks in advance for your help.<BR><BR>-Carl

    <p>Hi Carl</p><p> </p><p>Can I ask you something before I give you the feedback on thisone. Do you use the system built in table of contents or did youdesign one?</p><p> </p><p>(1) If you have designed the table of contents  I would sayit is feasible to incorporate them in pdf  formataccording</p><p>to your order in the report book</p><p>BUT</p><p>(2) If you use the system built in table of contents the orderwill be determined by the number of your reports  you add inthe report book</p>

  • Importing XML Tags in a document

    Hello,
    I've been trying to import XML Tags in a .indd i created, using the Java API but it does not seem to work (the tags content don't update when i export the document as PDF).  I did the same actions in the InDesign CS4 GUI and it worked like it's supposed to.
    I ran the InDesign server using that command: InDesignServer -iorfile c:\ior.txt -pluginpath Server\Corba
    I included the .indd file, XML tags file and the Java code I wrote.
    EDIT:
    Also, document.getModified() is FALSE, even after calling document.loadXMLTags(...).
    When I exports the tags, all I get is this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root colorindex="0"><Tag colorindex="35"/></Root>
    document.countTextFrames() returns 4, which is what is expected.  However document.countXMLTags() returns 2, i'm guessing it's because all my tags are named <Tag...> (+ the <Root> element).  Could that be the cause of my problems?
    any help will be appreciated, thanks

    Import XML imports the entire XML file, including the tags and the content, into the document. In the UI, the result would be seen in the Structure View. You can then work with the imported tagged content.
    Load XML tags simply loads the tags into the tag list. In the UI, the result would be seen in the tags panel. (This command is also available from the tags panel.) No XML content is imported; only the tag list is populated. This is used when you just want the tags from a document, and you don't want the content. You can then tag new content using the same tags as the XML file.

  • Table of contents empty

    When I generate a Table of Contents based on the H1 style in my document, It creates a text box with just a title and I don't know why! I've googled it but the only thing I see is people saying "make sure Include Book Documents" is ticked, but that tick box is greyed out and to my knowledge, it is not needed for this document. Any Ideas?

    I have a specific style set up (similary to body text) to dress the table of contents at 11pt. Overset text was my thought too! but its actually just an empty paragraph with a title. I've attached an image to help explain.

  • Build a table based on XML data set with Spry

    Hi there,
    I'm new to spry technology therefore forgive any basic question of mine.
    I'm trying to fill content in a table based on XML data set values but nothing is shown :-(
    here is my code.... any suggestion? pls tell me where I'm wrong.
    Thank you in advance
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    var uscite = new Spry.Data.XMLDataSet("data/Calendario 2011.xml", "csv_data_records/record", {sortOnLoad: "Date", sortOrderOnLoad: "ascending"});
    uscite.setColumnType("Date", "date");
    uscite.setColumnType("km", "number");
    </script>
    <div class="RankContainer" id="UsciteDiv" spry:region="uscite" >
              <table width="100%" border="0" class="RankTable">
                <tr>
                  <th width="10%" scope="col" spry:sort="Date">Data</th>
                  <th width="20%" scope="col">Destinazione</th>
                  <th width="5%" scope="col">KM</th>
                  <th width="35%" scope="col">Percorso</th>
                  <th width="30%" scope="col">Breve</th>
                 <!-- <th width="15%" scope="col">Mappa</th>-->
                </tr>
                <tr>
                   <script type="text/javascript">
           var rows = uscite.getData();
        for (var i = 0; i < rows.length; i++)
         if (rows[i]["Mappa"].startsWith("/"))
          rowContent = "<td> si </td>";
         else
              rowContent = "<td> no </td>";
         document.write("<td>{Date}</td>");
         document.write("<td>"+rowContent+"</td>");
         document.write("<td>{km}</td>");
         document.write("<td>{Percorso}</td>");
         document.write("<td>{Breve}</td>");
          </script>
               </tr>
              </table>
           </div>

    Sure this is how it should work (except that no anchor tag shall be present for Destinazione whereas Mappa has no real value in)
    http://www.gsc-borsano.it/_Calendario%202011.html
    and this is the non working page
    http://www.gsc-borsano.it/_v2Calendario%202011.html
    Thanks

  • Reading a xml file and Extract content of xml tags

    Hi,
    I need a InDesign script to Extract content of xml tags by reading a local xml file. And stamping the content of xml on InDesign Text frame.
    My sample xml is as follows .
    <events type="array">
    <event> 
    <aktiv_jn>J</aktiv_jn> 
    <enetpulse_id>1712408</enetpulse_id>
    <event_id>65974</event_id>
    <hjemmehold>AZ Alkmaar</hjemmehold>
    <id>93</id>
    <kickoff>2014-08-17T12:30:00+01:00</kickoff>
    <land_id>140</land_id>
    <land_navn>Holland</land_navn>
    <liga_id>13684</liga_id>
    <liga_navn>Eredivisie</liga_navn>
    <livebetting_jn>J</livebetting_jn>
    <marked_id>2897740</marked_id>
    <marked_nummer>138</marked_nummer>
    <marked_tekst>AZ Alkmaar - Ajax</marked_tekst>
    <moderkamp_jn>J</moderkamp_jn>
    <ob_bet_type>MR</ob_bet_type>
    <odds_1>2.95</odds_1>
    <odds_2>2.25</odds_2>
    <odds_x>3.35</odds_x>
    <program_slut>2014-08-18T23:59:00+01:00</program_slut>
    <program_start>2014-08-15T00:00:00+01:00</program_start>
    <resultat>2</resultat>
    <spilstop_dato_tid>2014-08-17T12:30:00+01:00</spilstop_dato_tid>
    <sport_id>21</sport_id>
    <sport_navn>Fodbold</sport_navn>
    <taerskel nil="true"/>
    <udehold>Ajax</udehold>
    <udfald_1_id>9661951</udfald_1_id>
    <udfald_2_id>9661953</udfald_2_id>
    <udfald_x_id>9661952</udfald_x_id>
    </event>
    </events>
    And on my Indesign Page upon execution of script: I need text like,
    land_navn:     Holland
    odds_1:     2.95
    odds_2:     2.25
    odds_x:     3.35

    Hi,
    Try:

  • XML table of contents file for PDFBOOKBINDER API

    Here is my control file for making the PDFBOOKBINDER, Having touble making a table of contents, this code will merge the pdfs ( Also I need them to be RTF) it
    says you can use RTF in the documentation but HOW? This code will display my tableofcontents.rtf but does not put in the page numbers... need help
    Thanks,
    Doug
    <?xml version="1.0" encoding="utf-8"?>
    <outline xmlns="http://xmlns.oracle.com/oxp/book/">
      <!--
       The 'title-page' element should point to a PDF title page inserted
       at the beginning of the book. (OPTIONAL)
      -->
      <!-- So here is the title page reference, in this case it is going to use an RTF template -->
      <!-- <title-page type="rtf">c:/temp/Tableofcontents.rtf</title-page> -->
      <!-- next follow the three documents we want to combine -->
      <item>
    <content-container>
        <content>c:\temp\mypage1.pdf</content>
    </content-container>
      </item>
    <item>
    <content-container>
        <content>c:\temp\mypage2.pdf</content>
    </content-container>
      </item>
      <item>
    <content-container>
        <content>c:\temp\mypage3.pdf</content>
    </content-container>
      </item>
    </outline>

    Please take a look at this: http://blogs.oracle.com/xmlpublisher/2010/05/bookbindng_samples.html
    Thanks!

  • Accessibility Tags - What to do with Table of Contents & More

    I am looking for some help and advice regarding tagging a PDF document for accessibility using Acrobat 9 Pro.
    Until now, the most I've ever done with Acrobat is create the occasional straight-text document and a few simple forms.  But my boss has asked me to tag a programming manual for accessibility and I'm a little lost.  There are a lot of both images and code samples in this text that I have no idea how to work with because the automatic tagging seems to have gone haywire.
    I downloaded the Acrobat 9 Pro Accessibility Repair Workflow document and have done the following:
    Determined that my document is not a scanned document.
    Determined that there are no forms or buttons in this document.
    Set the language to English.
    Set the document security to "no security".
    Determined that the document has bookmarks.
    Determined that the document is not a tagged document.
    Run the Accessibility Full Check.
    This is where I ran into problems--both because of the nature of the document and my own ignorance of the "making accessible" process.
    My table of contents is split up into multiple areas shown as tables but the individual items in the table are irregularly identified--I have no clue how to get them to appear correctly.  Any tips would be appreciated.  Should the Table of Contents even be a table?  I know it's called a table, but it has multiple levels and I'm just not sure what to do with it.
    There are also several tables in the document.  They appear mostly OK, but Acrobat seems to think that the tables are made up of individual figures and produces "No alternate text for Figure" errors on some of them.
    Finally, how on earth do I do text flow on code??  The code is all text, not images.
    If anyone knows anything about this whole accessibility thing I would greatly appreciate your input.
    Thank you!
    Jenn

    It may actually be faster to save it as a DOC file. The formatting may get messed up, but fixing that may be faster than doing all of the tagging you need to do. At the end, you have a document that can easily be modified in the future and recreated in PDF form. The long-term workflow should be better. My guess you will find that setting up a style sheet in WORD (or using an existing one) will be easy to use in addressing the issues. When I think of setting a bookmark in some location, I think of the work in setting just one bookmark manually in Acrobat. I think that WORD would actually be easier if the file transfer is readonably. Worth a try anyway.

Maybe you are looking for

  • System crashes with linux 3.3.4-1

    Running fully updated (@01/05/12) Arch with kernel linux 3.3.4-1 on an elderly Compaq Evo D500 with an Nvidia GeForce FX 5200 AGP graphics card, and running Openbox as WM and xf86-video-nouveau driver. As soon as I updated kernel, am getting complete

  • Unable to Deploy war file in 6.1/sp1/solaris

    We are using wl 6.1/sp1 solaris. What I can gather is when the server trying to parse the dtd for weblogic.xml..for some reason it does not find the local copy of th e dtd? any clues how I can fix this. Any help is appreciated. java.net.ConnectExcept

  • OSX 10.7.5 My iCal won't connect to my yahoo calander.

    "The URL encountered HTTP error 404. Make sure the URL is correct." How do I change the URL on iCal?  I have tried deleting all my account from ical and re-adding them,  The same error occurs

  • Line have no end  with MathFP

    Hi every body, I am developing a software to draw a circle and according to an angle it draws a line from the centre of the circle to a point(the point indicates the angle). Anyhow i have used MathFP to calculate the sin&cos but i got an endless line

  • Igital Signature in PO

    Hi, We have Digital signature for Form16 in SAP. Same way does SAP supports Digital Sign in PO and if so please provide me a link where i can find info on how to do it. I searched in forums but i couldn't get exact info on this. Please guide me. With