Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 58938 invoked from network); 9 Jun 2008 19:02:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jun 2008 19:02:01 -0000 Received: (qmail 18279 invoked by uid 500); 9 Jun 2008 19:02:03 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 18264 invoked by uid 500); 9 Jun 2008 19:02:03 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 18253 invoked by uid 99); 9 Jun 2008 19:02:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 12:02:03 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.191.87.245] (HELO web39208.mail.mud.yahoo.com) (209.191.87.245) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Jun 2008 19:01:06 +0000 Received: (qmail 94901 invoked by uid 60001); 9 Jun 2008 19:01:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=qHeenoKpZcD36GV0SuGOe7nkivJwo0sqIH4mkitjJQ/v0S6K69No0NnDRAcpQiwUtNKvqXQRUz6HjztjcNkj+N50zeNwIIoGLPUId4+tw2bL6S7xlwK22lpFQdPXJMduNY1kjtL5nvJJOwS/ieUyzOCBQW1FfbtxrPdJ4v+to+s=; X-YMail-OSG: .oI8CH0VM1nByAcgTnsF1Db3aIFRKnrGaFOdVWRZMCPOfLqY5tAeYW2wJO6qv20MLnBdZ165X_BZ3nJhY0IKUwz5AYXgO6VV.LpnErbp5o3fDgci6UhPq.w2uy0- Received: from [63.239.69.1] by web39208.mail.mud.yahoo.com via HTTP; Mon, 09 Jun 2008 12:01:27 PDT Date: Mon, 9 Jun 2008 12:01:27 -0700 (PDT) From: M Harris Subject: Re: Summary as a Div To: abdera-dev@incubator.apache.org In-Reply-To: <200348.32981.qm@web39207.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-950267371-1213038087=:94812" Content-Transfer-Encoding: 8bit Message-ID: <680113.94812.qm@web39208.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-950267371-1213038087=:94812 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I should add that in FOMEntry I see setSummary(Div div) method calls the factory's newSummary() method passing the Div... But in FOMFactory newSummary only takes arguments Element, Text.Type.. So it returns newSummary(Text.Type.TEXT, parent) - treats the div as if it is a parent. It doesn't work as I think it should work or the way you say it should work... I have version .4... is there a patch? M Harris wrote: I've tried that to and I get this result: code: Div div = factory.newDiv(); div.setText("test value"); div.declareNS("http://www.somensurl.com/something", "prefix"); entry.setSummary(div); result: James M Snell wrote: In that case, you can create the div, then call the setSummary(div) method. - James M Harris wrote: > That works to an extent but I can't figure out how to get other namespaces in the div element > I need this: > > > By doing setSummaryAsXhtml it seems to put the div automatically and not allow me to add other namespaces. > > > James M Snell wrote: This should do it: > > entry.setSummaryAsXhtml("Some information here with a > class=\"..\">and a date formatted in XML format"); > > - James > > M Harris wrote: >> I'm a bit confused by reading the API. I can't figure out how to get the desired result >> >> >> >> Some information here with a and a date formatted in XML format >> > >> >> within an entry >> >> I tried creating a div with simple text but that did not even show up at all. >> >> > > > --0-950267371-1213038087=:94812--