[oXygen-user] Help on XForms validation and auto-completion
George Cristian Bina
Mon May 29 10:48:22 CDT 2006
There are a couple of approaches to have XHTML plus XForms validation
and content completion.
As far as I know there is under development at W3C an XML Schema that
handles XHTML and XForms. Not sure how to access that though... I will
see what I can find out about that and let you know. This will give you
both content completion and validation as with any XML Schemata.
Another approach is to use NVDL or NRL schema to combine the XML Schema
for XForms and the Relax NG schema for XHTML. Makoto has such a sample
NRL schema here:
and IIRC an NVDL schema for XHTML + XForms is presented in the NVDL
specification. oXygen has support for NRL and the NVDL support can be
added as external tool. This will give you validation but not content
completion - we plan to support NRL/NVDL also for content completion in
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
Paul Everitt wrote:
> First, my apologies: I know that this has been discussed elsewhere, and
> I know most of the pieces, but I can't seem to get the entire assembly
> working. I'm thus appealing for help.
> Here's my goal: I'm trying to author XHTML+XForms documents. I would
> like to validate them and preferably have autocompletion. At this
> stage, I'm not interested in custom XSD schemas in my XForms instances.
> I followed the help here:
> ...and I have XHTML 2 validation/completion working. I *thought* that
> XHTML2 would give me XForms and XML Events. Alas, here's the xhtml2.rng
> <x:h2>XForms module</x:h2>
> <x:p>To-Do: work out integration of XForms</x:p>
> <!--include href="xforms-11.rng"/-->
> So no dice. I then went on a day-long Google hunt, learning more about
> namespace routing languages etc. than I could possibly have wanted to
> know. I tried numerous iterations of numerous schemas for numerous specs.
> Next, I reviewed the oXygen mailing list archives and forum and found this:
> However, the example there didn't work for me. Meaning, I could put
> <xf:fake/> in my docs and it would still validate.
> I'd really be interested to hear that someone got XForms plus any flavor
> of XHTML working in oXygen. By working, I mean correct validation and
> autocompletion. I don't particularly care if it is XHTML 1 or 2, RNG or
> XSD or NRL, or what version of the spec is used.
> If anybody has a tarball containing an example document and the pile of
> schema docs it needed, I would be thrilled. All in all, either this
> stuff is hard or I'm pretty dumb.
> oXygen-user mailing list
More information about the oXygen-user