Re: using Pollo with the latest MSV

Bruno Dumon <[email protected]> Fri, 03 Oct 2003 11:14:02 +0200
Newsgroups gmane.editors.pollo.devel
Organization Outerthought
Message-ID <[email protected]>
Hi Greg,

Thanks for your patches. I updated MSV to the nightly build of today,
and applied your changes (for the attribute values I did it slightly
different). BTW, using "diff -u" generates easier to read diffs. I also
applied your changes to pollo.sh.

Thanks for these useful contributions!

Regards,

Bruno

PS: If all goes well, I'll make a 0.4 release later today.

PS2: It could be that you don't see these changes in CVS yet, because
anonymous CVS checkouts are currently served from a backup server.

On Fri, 2003-10-03 at 06:41, Gregory Davis wrote:
> Hello,
> 
> I was having difficulty getting Pollo to operate with external XML Schemas,
> whether locally defined, or preexisting.
> 
> For example, I could not load http://www.w3.org/2001/XMLSchema.xsd, using
> itself as the schema, rather than the Pollo built-in (which does not support
> validation). Also, my own schemas would not be parsed to make the tags
> available for creating conforming XML files.
> 
> The version of msv.jar included with the Pollo distribution was not capable
> of validating the XMLSchema.xsd, but the bugs have been corrected.  The
> nightly build is said to be stable.  It worked for me.
> 
> There have been some changes to MSV. Attribute values are now returned as
> integers and strings, where Pollo has assumed only strings.
> 
> In summary, I made 3 changes to Pollo that greatly increased usability for
> my needs:
> 1) Built the latest nightly release of MSV, see
>    http://groups.yahoo.com/group/msv-interest/message/52 ,
>    and copy the 5 JAR files to ./src/lib directory of Pollo
> 2. Apply the patches to MsvSchema.java, as shown in the attached file.
> Optionally, update
>    the pollo.sh to allow execution from any directory.
> 3. Re-build Pollo.
> 
> Test, by opening XMLSchema.xsd, using XMLSchema.xsd, and validating it.
> 
> Hope this is of use.
> 
> - Greg
-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[email protected]                          [email protected]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf