auto complete feature for xforms

Having trouble installing Oxygen? Got a bug to report? Post it all here.
shilu
Posts: 7
Joined: Tue Aug 23, 2005 9:26 am

auto complete feature for xforms

Post by shilu »

hi,
i want to create xforms using the oxygen plugin for eclipse. so i would like to have auto completion for this feature. also my xform is basically written within the tags <html>, <head>, <body>.
How would i be able to do this??

Shilu
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Associate a XML Schema/DTD/Relax NG schema/NRL schema/Schematron schema with the XForms document or create an association in the Preferences - Tag Insight - Default panel. See the section "Associate a schema to a document" in the User Manual:

http://www.oxygenxml.com/doc/ug-oxygen/ ... o-document

Best Regards,
Sorin
shilu
Posts: 7
Joined: Tue Aug 23, 2005 9:26 am

Post by shilu »

For more clarity on my question,
how iam having my xforms is that, all my xform model, instance, etc will come within the tag <head>. the xform action, (like input, output etc) related will come in the tag <body>. all this is enclose within the tag <html>. now if i use the schema for xforms, it doesnt give me autocomplete feature for the above scenario. if i use the xhtml schema, still it doesnot give me auto complete for xforms only for xhtml.

Validation occurs without any problem, what i need is the auto complete feature


Shilu
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,
shilu wrote:now if i use the schema for xforms, it doesnt give me autocomplete feature for the above scenario.
Post the URL of that schema.

Best Regards,
Sorin
shilu
Posts: 7
Joined: Tue Aug 23, 2005 9:26 am

Post by shilu »

sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

You cannot combine elements defined in the schema for XHTML with elements defined in the schema for XForms in the same XML document. Such a document is not valid. The 2 schemas do not allow that. Do you have a XHTML schema that allows combining with other schema ?

Best Regards,
Sorin
shilu
Posts: 7
Joined: Tue Aug 23, 2005 9:26 am

Post by shilu »

the XHTML schema allows you to use elements from any schema. there is no restriction on this. therefore my xform will get validated. the problem is that i dont get the auto complete feature.

the xhtml schema can be found at this URL

http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd
shilu
Posts: 7
Joined: Tue Aug 23, 2005 9:26 am

Post by shilu »

this link contains a few examples of xforms
http://www.w3.org/TR/xforms/sliceG.html

as you can see, the xforms are basically written within the xhtml tags.
i want auto complete feature to be available, when i am writting these xforms.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Declare the schema locations in the document:

Code: Select all

<html xmlns="http://www.w3.org/2002/06/xhtml2/"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/ http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd http://www.w3.org/2002/xforms http://www.w3.org/MarkUp/Forms/2002/XForms-Schema.xsd">

</html>
Best Regards,
Sorin
Post Reply