Hi Jim,
 
Thanks for your reply. I took a look at your example and the first problem was simply that I didn't include the Map factory support in the 0.2 release, because I didn't think it was very usefull and I wanted to test it a little more. Anyway, I have it working in my CVS working copy and I will make another release including this soon.
 
After correcting this no exception is thrown. But the XSLT template is not running correctly, presumably because the XML generated by JXV is not the same as that generated by Domify. If you could show me a piece of XML code demonstrating what type of XML you expect to get, I can configure JXV to produce it.
 
 
p.s. I came across a suspicious line in the maverick config file:
 
  <!-- set default-transform-method to "dom" to use dom instead of sax-->
  <view-factory type="jxv" provider="org.infohazard.maverick.opt.view.JXVViewFactory" default-transform-method="sax">
 
You don't seem to close this config element. I guess you had it right in your working copy but forgot to pack the correct version in the JAR.
 
By the way, in the view factory you don't have to check for nulls. JXV handles them.
 
Gal
----- Original Message -----
From: jim moore
Sent: Monday, November 18, 2002 7:38 PM
Subject: Re: [Mav-user] Java XML View open source project

Hi Gal,
 
I started playing around with making a custom view for Maverick that uses JXV but it seems to blow up pretty readily (JXV that is, not the custom view).
 
If you want to see how far I've gotten, you can download what I have here and play around with it:
 
 
--jim
----- Original Message -----
Sent: Sunday, November 17, 2002 8:25 PM
Subject: Re: [Mav-user] Java XML View open source project

Heh, forgot the address... it's http://jxv.sf.net.
 
----- Original Message -----
Sent: Monday, November 18, 2002 3:06 AM
Subject: [Mav-user] Java XML View open source project

Hello all.
 
I have recently released version 0.2 of JXV, an open source project aimed to convert Java objects into "XML views". JXV supports the same type of dynamic DOM tree implemented in Domify, and also implements a SAX-based approach which is usually more scalable. Here is a copy of the release announcement:
 
-- start of quote
 
I am pleased to announce the first public release of JXV.
JXV is a library which allows for Java objects to be given "XML Views", and for those views to be read back into objects. JXV supports both SAX and DOM output, and can read XML input from any SAX-compliant parser. Resulting DOM trees are dynamic, and reflect changes made to the object model even after they were created. JXV fully supports namespaces in it's XML views, and can correctly parse and read XML content with namespaces.

JXV uses a pluggable architecture which allows XML view factories to be configured and loaded at runtime. The JXV configuration mechanisms also leverage XML namespaces to allow the configurations for those different view factories to be inlined within the JXV configuration file. In this release, JXV comes pre-configured with view factories for JavaBeans, collections, array, and "flat objects" such as Strings, primitives, etc. These factories support a wide variety of configuration options, and are sufficient for most object models. Future versions of JXV will include pre-configured support for additional factories. JXV may also release special-purpose factories (such as ones providing views for RowSets, ResultSets and other JDBC structures) as extension packages.

JXV is open-source and freely available in both source and binary form. It is covered by an Apache-like license (see information at the project page). The JXV distribution contains a compiled binary version as well as a buildable "src" dir (Ant is required to use the build script).
 
-- end of quote
 
Note that shortly after this release I had released version 0.2 with minor documentation improvements and JDK1.3 support (previous version depended on 1.4 for some exception-related classes).
 
I think JXV can be put to good use in Maverick. I would be happy to try and help the Maverick developers wire JXV into Mavericks existing architecture. If anybody is interested in trying this, please contact me. Also any questions/comments/suggestions are welcome.
 
Regards
Gal

Reply via email to