|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
Barracuda and XML outputHi,
Has anyone successfully using Barracuda to generate/render XML files and, in particularly, using the IterativeModel interface? We've been using Barracuda for a while now and are now need to generate XML (RSS) files/output. Currently, we have a model (IterativeModel) that render a list of objects into an HTML template. What we want is to use the same model (with some tweaks) to output XML (and perhaps using an XML as a template?). It seems like XMLC can do it (or should be able to) .. But I can't get it to compile the files (missing various classes). Keep in mind that we're using an old version of Barracuda/XMLC (about 2 years old) and can't upgrade it in the current dev cycle. My question is: can this be done with the old Barracuda/XMLC? If not, can it be done with the latest Barracuda/XMLC? Thanks in advance! -thuong -- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
||||
|
|
Re: Barracuda and XML outputWhat does your XMLC options file look like? Note that Barracuda does have an
XML example (or is it part of the tutorial?). Take a look at how it works. Most importantly, take a look at its XMLC options file. Jake Quoting Thuong Nguyen <thuong.nguyen@...>: > Hi, > > Has anyone successfully using Barracuda to generate/render XML files > and, in particularly, using the IterativeModel interface? We've been > using Barracuda for a while now and are now need to generate XML (RSS) > files/output. Currently, we have a model (IterativeModel) that render a > list of objects into an HTML template. What we want is to use the same > model (with some tweaks) to output XML (and perhaps using an XML as a > template?). > > It seems like XMLC can do it (or should be able to) .. But I can't get > it to compile the files (missing various classes). Keep in mind that > we're using an old version of Barracuda/XMLC (about 2 years old) and > can't upgrade it in the current dev cycle. My question is: can this be > done with the old Barracuda/XMLC? If not, can it be done with the > latest Barracuda/XMLC? > > Thanks in advance! > > -thuong > > > > -- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
||||
|
|
Re: Barracuda and XML output
Sure, you should be able to do this.
Here's what's in our options.xmlc: -delete-class discardMe -dom xerces -validate true Here's a sample template: <?xml version="1.0"?> <!DOCTYPE table PUBLIC "-//ATMReports//DataTables//EN" "../../../../../../dtds/DataTables.dtd"> <table> <tr> <th class="Dir::IsEnabled.ReportModel.MessageTime">Timestamp</th> <th class="Dir::IsEnabled.ReportModel.Type">Type</th> <th class="Dir::IsEnabled.ReportModel.MessageSubject">Subject</th> <th class="Dir::IsEnabled.ReportModel.TerminalNumber">Terminal</th> <th class="Dir::IsEnabled.ReportModel.FromUsername">From</th> <th class="Dir::IsEnabled.ReportModel.Status">Status</th> </tr> <tr class="Dir::Block_Iterate_Start.MessageModel"><th> </th></tr> <tr class="Dir::Iterate_Next.MessageModel"> <td class="Dir::IsEnabled.ReportModel.MessageTime"><span class="Dir::Get_Data.MessageModel.MessageTime">5/5/03 8:03:23</span></td> <td class="Dir::IsEnabled.ReportModel.Type"><span class="Dir::Get_Data.MessageModel.Type">Low Cash</span></td> <td class="Dir::IsEnabled.ReportModel.MessageSubject"><span class="Dir::Get_Data.MessageModel.MessageSubject">Terminal below $100</span></td> <td class="Dir::IsEnabled.ReportModel.TerminalNumber"><span class="Dir::Get_Data.MessageModel.TerminalNumber">CS12345</span></td> <td class="Dir::IsEnabled.ReportModel.FromUsername"><span class="Dir::Get_Data.MessageModel.FromUsername">JoeUser</span></td> <td class="Dir::IsEnabled.ReportModel.Status"><span class="Dir::Get_Data.MessageModel.Status">New</span></td> </tr> <tr class="Dir::Block_Iterate_End.MessageModel"><th> </th></tr> </table> Here's how we compile those templates into java files via XMLC: <!-- /atmreports localization --> <taskdef name="localize" classname="org.barracudamvc.taskdefs.Localize" classpathref="build.classpath" /> <!-- *.xml --> <localize markup="XML" tidy="false" verbose="false" force="${xmlc.force}" srcdir="${src.dir}/${src.package.path}/xmlc" packagedir="${src.package.path}/xmlc" options="${xmlc_options.file}" sourceout="${build.source.xmlc.dir}" destdir="${build.classes.dir}" includes="**/*.xml" excludes="**/old*/**" /> And then we just finish by compiling via javac: <javac srcdir="${build.source.xmlc.dir}" destdir="${build.classes.dir}" includes="**/*.java" excludes="**/old*/**" classpathref="build.full.classpath" nowarn="true" compiler="${javac.compiler.production}" debug="${javac.debug.production}" optimize="${javac.optimize.production}" deprecation="${javac.deprecation.production}" verbose="${javac.verbose.production}" /> That should give you everything you need to get it figured out. Christian Thuong Nguyen wrote: Hi, Has anyone successfully using Barracuda to generate/render XML files and, in particularly, using the IterativeModel interface? We've been using Barracuda for a while now and are now need to generate XML (RSS) files/output. Currently, we have a model (IterativeModel) that render a list of objects into an HTML template. What we want is to use the same model (with some tweaks) to output XML (and perhaps using an XML as a template?). It seems like XMLC can do it (or should be able to) .. But I can't get it to compile the files (missing various classes). Keep in mind that we're using an old version of Barracuda/XMLC (about 2 years old) and can't upgrade it in the current dev cycle. My question is: can this be done with the old Barracuda/XMLC? If not, can it be done with the latest Barracuda/XMLC? Thanks in advance! -thuong --
-- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
||||
|
|
|
||||
|
|
Re: Barracuda and XML output
Good question. I _think_ the answer is yes, but I'm not positive. It
looks to me like the issue you are running into here is XMLC - the
example I sent works with the current version of XMLC. Your best bet is
probably to pull the cvs tree (since that's the old version), and look
for one of the examples that generates XML.
Christian Thuong Nguyen wrote:
--
-- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
||||
|
|
|
||||
|
|
|
||||
|
|
|
||||
|
|
Barracudamvc.org Down!The site has been down for several days – we’re trying to get to latest version of Barracuda.
These are the only Barracuda-related email addresses I could find. Can someone look into getting this back online ?
Thanks Paul Heath -- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
||||
|
|
Re: Barracudamvc.org Down!You can get the latest files from the link below. I will try to find out
about the web site status today. http://forge.objectweb.org/project/showfiles.php?group_id=91 Denny Paul Heath wrote: > > The site has been down for several days – we’re trying to get to > latest version of Barracuda. > > These are the only Barracuda-related email addresses I could find. Can > someone look into getting this back online ? > > Thanks > > Paul Heath > > ------------------------------------------------------------------------ > > > -- > Barracuda mailing list > Barracuda@... > http://www.objectweb.org/wws/lists/projects/barracuda > -- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
||||
|
|
RE: Barracudamvc.org Down!fixed
Heath Eldeen
"This message and/or attachment contains confidential information. Distribution of this information must be only to those ATM Express, Inc. team members or individuals contractually approved to receive this information, or who have a business need-to-know. If you are not the addressee and/ or are not authorized to receive this for the addressee, you must not use, copy, disclose, forward, print or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation."
-- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
||||
|
|
RE: Barracudamvc.org Down!Note that all source and binaries can be obtained from Objectweb's Forge site directly. No need to go through BMVC.org... http://forge.objectweb.org/projects/barracudamvc Jake Quoting Heath Eldeen <heathe@...>: > fixed > > Heath Eldeen > [heathe@...] > > > > ________________________________ > > From: Paul Heath [mailto:pheath@...] > Sent: Monday, April 16, 2007 8:45 AM > To: christian.cryder@...; barracuda@...; > barracuda@... > Subject: [barracuda] Barracudamvc.org Down! > > > > The site has been down for several days - we're trying to get to > latest version of Barracuda. > > > > These are the only Barracuda-related email addresses I could > find. Can someone look into getting this back online ? > > > > Thanks > > Paul Heath > > -- Barracuda mailing list Barracuda@... http://www.objectweb.org/wws/lists/projects/barracuda |
| Free Forum Powered by Nabble | Forum Help |