Hi, Is it possible to convert the NITF XML file to JSON format???
Thanks, Sashi G On Mon, Mar 9, 2009 at 10:25 AM, Larry Kluger <[email protected]> wrote: > > Hi Sashi, > > Look at Timeline.DefaultEventSource.prototype.loadXML > > You'd use that to write a .loadNITF which would create Timeline events from > the NITF xml file. > > Writing a new loader is programming. If you don't have the right > background, then you'll need assistance. > > Regards, > > Larry > > ------------------------------ > *From:* sashi kaladhar <[email protected]> > *To:* [email protected] > *Sent:* Monday, March 9, 2009 12:24:48 PM > > *Subject:* Re: NITF to Simile timeline format > > Hi Larry, > I looked at the Sources.js for the current handlers and I did not find any > handler that suits my needs. > Can you help me? > > @Jon - Jon I am not familiar with XSLT. I went through few XSLT tutorials > but I was not able to figure out how to construct an XSLT stylesheet to turn > my data into XML. > > Any help? > > > Thanks a lot guys, > Sashi G > > > > On Thu, Mar 5, 2009 at 4:40 PM, Larry Kluger <[email protected]> wrote: > >> >> Hi Sashi, >> >> As Jon suggests, one good option is XSLT. >> >> Another is to write a new Timeline source handler to process it directly. >> See sources.js which contain the current handlers. >> >> If you don't have the background for doing this, consulting help is >> available. >> >> Regards, >> >> Larry >> >> >> ------------------------------ >> *From:* Jon Crump <[email protected]> >> *To:* SIMILE Widgets <[email protected]> >> *Sent:* Thursday, March 5, 2009 5:10:04 PM >> *Subject:* Re: NITF to Simile timeline format >> >> >> Hi Sashi, >> >> What have you tried so far? >> >> A quick look at the IPTC site and the NITF schema suggests that NITF is >> well formed XML, so you ought to be able to construct an XSLT stylesheet >> to turn your data into the simple XML format that simile timeline expects. >> >> The stylesheet provided by the IPTC at: >> >> <http://www.iptc.org/std/NITF/3.2/examples/nitf-to-html.xsl> >> >> Might give you a head start and some ideas. >> >> Jon >> >> On Thu, 5 Mar 2009, djgang wrote: >> >> > >> > Hi, >> > >> > My name is Sashi Gangaraju. >> > >> > I am trying to display a list of events from a file which is in NITF >> > ( News Industry Text Format ). >> > >> > I am unable to figure out how to convert this file into a format which >> > can be read and understood by Simile Timeline so that I can display >> > the list of things in that particular file on the timeline. >> > >> > >> > Could you please let me know how to convert these files in simile >> > timeline xml or json format. >> > >> > >> > I am attaching an NITF sample file. >> > >> > >> > Thanks a lot. >> > >> > >> > Regards, >> > Sashi G >> > >> > >> > >> > >> > >> > Here is the NITF xml file >> > >> > >> > >> > >> > >> > <?xml version="1.0" encoding="UTF-8"?> >> > <!DOCTYPE nitf SYSTEM "http://www.nitf.org/IPTC/NITF/3.3/specification/ >> > dtd/nitf-3-3.dtd"> >> > <nitf change.date="June 10, 2005" change.time="19:30" version="-// >> > IPTC//DTD NITF 3.3//EN"> >> > <head> >> > <title>Paid Notice: Deaths BLUMENTHAL, MARTIN</title> >> > <meta content="dn010107" name="slug"/> >> > <meta content="1" name="publication_day_of_month"/> >> > <meta content="1" name="publication_month"/> >> > <meta content="2007" name="publication_year"/> >> > <meta content="Monday" name="publication_day_of_week"/> >> > <meta content="Classified" name="dsk"/> >> > <meta content="7" name="print_page_number"/> >> > <meta content="B" name="print_section"/> >> > <meta content="3" name="print_column"/> >> > <meta content="Paid Death Notices" name="online_sections"/> >> > <docdata> >> > <doc-id id-string="1815718"/> >> > <doc.copyright holder="The New York Times" year="2007"/> >> > <identified-content> >> > <person class="indexing_service">BLUMENTHAL, MARTIN</person> >> > <classifier class="online_producer" >> > type="types_of_material">Paid Death Notice</classifier> >> > <classifier class="online_producer" >> > type="taxonomic_classifier">Top/Classifieds/Paid Death Notices</ >> > classifier> >> > </identified-content> >> > </docdata> >> > <pubdata date.publication="20070101T000000" ex-ref="http:// >> > query.nytimes.com/gst/fullpage.html? >> > res=9907E1DE1E3AF932A35752C0A9619C8B63" item-length="179" name="The >> > New York Times" unit-of-measure="word"/> >> > </head> >> > <body> >> > <body.head> >> > <hedline> >> > <hl1>Paid Notice: Deaths BLUMENTHAL, MARTIN</hl1> >> > </hedline> >> > </body.head> >> > <body.content> >> > <block class="lead_paragraph"> >> > <p>BLUMENTHAL--Martin. A New York business man and >> > philanthropist, died last Saturday in Manhattan after a long illness. >> > He was 90. Mr. Blumenthal was born in Frankfurt, Germany and >> > immigrated to New York City in 1935. He was President of A.J. >> > Hollander and Company, a commodities trading firm. After retirement he >> > devoted himself to philanthropic activities. He was a trustee of the >> > YMHA and served as chairman of Bezalel, a charitable organization that >> > supports the arts in Israel. He was also active in Human Rights Watch. >> > Mr. Blumenthal is survived by his wife, Sallie Blumenthal, his >> > children Richard of Greenwich and David of Boston, six grandchildren, >> > his brother Fred and his sister, Edith Levisohn. His first wife Jane >> > died in 1969. Funeral will take place at Riverside Chapel at 11:30am, >> > Tuesday January 2nd. $(6$)BLUMENTHAL--Martin. Park Avenue Synagogue >> > mourns the passing of a devoted congregant. We extend to his wife >> > Sally and the entire family our heartfelt sympathy. May his memory >> > remain for a blessing. David H. Lincoln, Sr. Rabbi Amy AB Bressman, >> > Chairman of the Board Menachem Z. Rosensaft, President</p> >> > </block> >> > <block class="full_text"> >> > <p>BLUMENTHAL--Martin. A New York business man and >> > philanthropist, died last Saturday in Manhattan after a long illness. >> > He was 90. Mr. Blumenthal was born in Frankfurt, Germany and >> > immigrated to New York City in 1935. He was President of A.J. >> > Hollander and Company, a commodities trading firm. After retirement he >> > devoted himself to philanthropic activities. He was a trustee of the >> > YMHA and served as chairman of Bezalel, a charitable organization that >> > supports the arts in Israel. He was also active in Human Rights Watch. >> > Mr. Blumenthal is survived by his wife, Sallie Blumenthal, his >> > children Richard of Greenwich and David of Boston, six grandchildren, >> > his brother Fred and his sister, Edith Levisohn. His first wife Jane >> > died in 1969. Funeral will take place at Riverside Chapel at 11:30am, >> > Tuesday January 2nd. $(6$)BLUMENTHAL--Martin. Park Avenue Synagogue >> > mourns the passing of a devoted congregant. We extend to his wife >> > Sally and the entire family our heartfelt sympathy. May his memory >> > remain for a blessing. David H. Lincoln, Sr. Rabbi Amy AB Bressman, >> > Chairman of the Board Menachem Z. Rosensaft, President</p> >> > </block> >> > </body.content> >> > </body> >> > </nitf> >> > >> > > >> > >> >> >> >> >> >> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
