Page 1 of 1
auto complete feature for xforms
Posted: Tue Aug 23, 2005 11:25 am
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
Posted: Wed Aug 24, 2005 11:24 am
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
Posted: Wed Aug 24, 2005 12:44 pm
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
Posted: Wed Aug 24, 2005 4:49 pm
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
Posted: Thu Aug 25, 2005 6:14 am
by shilu
Posted: Thu Aug 25, 2005 11:43 am
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
Posted: Thu Aug 25, 2005 11:49 am
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
Posted: Thu Aug 25, 2005 12:05 pm
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.
Posted: Thu Aug 25, 2005 12:16 pm
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