Help on XForms validation and auto-completion

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: http://www.oxygenxml.com/pipermail/oxygen-user/2005-July/000518.html http://groups.yahoo.com/group/rng-users/message/432 ...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 snippet: <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: http://www.oxygenxml.com/forum/ftopic1769.html 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. --Paul

Hi Paul, 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: http://www.idealliance.org/papers/dx_xml03/papers/04-04-03/04-04-03.html#XFo... 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 the future. Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com 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:
http://www.oxygenxml.com/pipermail/oxygen-user/2005-July/000518.html http://groups.yahoo.com/group/rng-users/message/432
...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 snippet:
<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:
http://www.oxygenxml.com/forum/ftopic1769.html
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.
--Paul _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi George, thanks for the reply. A few minutes ago I found this: http://www-128.ibm.com/developerworks/xml/library/x-cxdp1/ The HTTP download didn't work, but the FTP download did. I was able to use the XSD in the wildcard directory to get XHTML 1 and XForms working in oXygen with validation and autocompletion. It's still a bit funky: 1) It doesn't include XML Events. 2) All XForms elements go in the <html:body>, including <xf:model>. I don't think that's correct, though I haven't yet seen something describing XForms in XHTML 1 as a host language that says <xf:model> MUST go in <html:head>. 3) I was looking for XHTML 2. Oh well. :^) If you find something that is more official and works well in oXygen, please email the list. Thanks! I guess this stuff is all too new to beg for having an XHTML 2 + XForms template in the next release of oXygen. :^) --Paul On May 29, 2006, at 5:48 PM, George Cristian Bina wrote:
Hi Paul,
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: http://www.idealliance.org/papers/dx_xml03/papers/ 04-04-03/04-04-03.html#XForms1 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 the future.
Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
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: http://www.oxygenxml.com/pipermail/oxygen-user/2005-July/ 000518.html http://groups.yahoo.com/group/rng-users/message/432 ...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 snippet: <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: http://www.oxygenxml.com/forum/ftopic1769.html 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. --Paul _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Paul Everitt wrote:
2) All XForms elements go in the <html:body>, including <xf:model>. I don't think that's correct, though I haven't yet seen something describing XForms in XHTML 1 as a host language that says <xf:model> MUST go in <html:head>.
There is no such rule, it is just a common practise.
3) I was looking for XHTML 2. Oh well. :^)
If you find something that is more official and works well in oXygen, please email the list. Thanks!
I guess this stuff is all too new to beg for having an XHTML 2 + XForms template in the next release of oXygen. :^)
Do you really think that using XHTML 2 is a good idea? Is there any software supporting it? XForms are great stuff and you can use them successfully with XHTML 1. There are several tools supporting XHTML 1 + XForms, but I don't know single XHTML 2 browser. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 ** ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 ** ------------------------------------------------------------------ http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------

On May 29, 2006, at 6:07 PM, Jirka Kosek wrote:
Paul Everitt wrote:
2) All XForms elements go in the <html:body>, including <xf:model>. I don't think that's correct, though I haven't yet seen something describing XForms in XHTML 1 as a host language that says <xf:model> MUST go in <html:head>.
There is no such rule, it is just a common practise.
Ok, thanks.
3) I was looking for XHTML 2. Oh well. :^) If you find something that is more official and works well in oXygen, please email the list. Thanks! I guess this stuff is all too new to beg for having an XHTML 2 + XForms template in the next release of oXygen. :^)
Do you really think that using XHTML 2 is a good idea? Is there any software supporting it? XForms are great stuff and you can use them successfully with XHTML 1. There are several tools supporting XHTML 1 + XForms, but I don't know single XHTML 2 browser.
Yes, I'm aware the documents in the XHTML 2 namespace won't mean much to any normal browser. I am investigating how to use XHTML 2 in the context of a CMS. Specifically, I want to investigate the benefits that can come from using smart tools (e.g. oXygen) for CMS development, and how this can increase productivity and quality. The XHTML 2 will be transformed to XHTML 1 before sending to the browser. --Paul

Paul Everitt wrote:
<x:h2>XForms module</x:h2> <x:p>To-Do: work out integration of XForms</x:p> <!--include href="xforms-11.rng"/-->
You can find XForms schema at http://www.w3.org/People/mimasa/test/schemas/rng/ -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 ** ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 ** ------------------------------------------------------------------ http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------

On May 29, 2006, at 6:04 PM, Jirka Kosek wrote:
Paul Everitt wrote:
<x:h2>XForms module</x:h2> <x:p>To-Do: work out integration of XForms</x:p> <!--include href="xforms-11.rng"/-->
You can find XForms schema at
Yes, but it failed with: "conflicting ID_types for attribute "repeat-bind" of element "td" from namespace "http://www.w3.org/2002/06/xhtml2/". --Paul

Paul Everitt wrote:
You can find XForms schema at
Yes, but it failed with:
"conflicting ID_types for attribute "repeat-bind" of element "td" from namespace "http://www.w3.org/2002/06/xhtml2/".
I haven't studied this schema carefully, but probably XForms schema defines pattern like anyElement which includes elements from all namespaces with all attributes. You should redefine this pattern to exclude elements from XHTML namespace. If you need to further discuss this RELAX NG topic it would be better to move it to http://groups.yahoo.com/group/rng-users/ Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 ** ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 ** ------------------------------------------------------------------ http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------
participants (3)
-
George Cristian Bina
-
Jirka Kosek
-
Paul Everitt