Relax
Nagy Gergely <[email protected]> Tue, 25 Jan 2005 13:01:14 -0700
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Dear List, Is there anybody here using Relax NG with jaxp 1.3 /JDK 5.0 ? In a small command line app, I'd simply need to resolve xincludes in a doc, validate the instance with an RNC schema, then transform it with saxon XSLT2.0. Yes, this task looks pretty easy, but so far I could not find a nice way to do that.. After a few days of googling I found: 1) although the new API looks nice, RNG is not supported by the RI 2) java.xml.validation is a new incarnation of / should preferred over JARV(http://iso-relax.sourceforge.net/JARV). Is this true? 3) until the Relax NG validators (Jing & MSV) switch to the new API, a JARV->JAXP adaptor should help (http://www.kohsuke.org/jarv/tiger). Unfortunately that's very outdated,doesn't work with JAXP stable. Anyway I did a dirty fix; has anyone got a proper one? 4) MSV (https://msv.dev.java.net) apparently doesn't support the compact syntax; so I tried using: 5) RncReader (http://www.pantor.com/RncReader-1_0.tgz) to feed the grammar(saxified) into javax.validation.Schema. This resulted in MSV exceptions/well-formedness problems. 6) Jing (version 20030619) does support RNC, but since JARV/JAXP apparently doesn't, there is no SchemaFactory.setCompactSyntax, or similar. Thus, I've fallen back to Jing's native interface; which finally seems to work, but somehow it would feel saner to use more standard stuff. I've tried some simpler APIs (XOM&NUX), with even less luck (not even able to pass params to the stylesheet). I'm even more interested in some scripting solution(ant,jelly,groovy,xml pipeline,sisc,etc..), any hints on that? (without creating intermediary files as an Ant article suggests) Have I missed anything? (I honestly hope so :) Any help, clarifications are really appreciated! thank you, Gergo ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest.