
I notice when the DocDecl is commented that the docbook xref element is inserted as <xref></xref> instead of <xref/> Then I notice when inserting an attribute the inline completion mode is auto populated with the values of all other attributes of that type in the current document. This is a great feature, I never saw it before, it save soooo much time. Now why does it not work when the DocDecl is uncommented? -- Sean Wheller sean@enbaya.co.za http://www.enbaya.co.za

Hi Sean, Oxygen will perform automatically a learn structure action when you open a document and use that to guide the editing if a DTD or a schema is not specified.
I notice when the DocDecl is commented that the docbook xref element is inserted as <xref></xref> instead of <xref/>
That is because xref is declared as EMPTY in the DTD. The learn structure action generates a more relaxed model it will consider the xref element model as (#PCDATA), thus the <xref></xref> after content completion.
Then I notice when inserting an attribute the inline completion mode is auto populated with the values of all other attributes of that type in the current document.
Yes, on learn structure the attribute values are also presented.
This is a great feature, I never saw it before, it save soooo much time. Now why does it not work when the DocDecl is uncommented?
You can switch between the DTD and the learned structure using the validate and learn structure actions. Best Regards, George ------------------------------------------------------------- George Cristian Bina mailto:george@oxygenxml.com <oXygen/> XML Editor - http://www.oxygenxml.com/

On Tuesday 17 August 2004 12:03, George Cristian Bina wrote:
You can switch between the DTD and the learned structure using the validate and learn structure actions.
Yes, I noticed this has some effect. But when the DTD is specified oxy inserts with strict adherence to the DTD. So in the case of xref, it will use <xref/> When inserting attributes it will prompt with autocompletion on on the attributes specified for that element within the dtd and when no values are defined will leave it blank (so auto completion stops). Using the learn feature does not change this position. Unless I am doing something wrong. Which is most likely cause I am tired:-) But Geee Wizz is that could happen by default on all documents it would be a super feature:-) -- Sean Wheller sean@enbaya.co.za http://www.enbaya.co.za

Hi Sean,
When inserting attributes it will prompt with autocompletion on on the attributes specified for that element within the dtd and when no values are defined will leave it blank (so auto completion stops). Using the learn feature does not change this position. Unless I am doing something wrong. Which is most likely cause I am tired:-)
After a learn structure operation oXygen will use the document structure to guide the content completion irrespective of the DTD declaration and if you have values for that attribute you should be able to insert them through the content completion popup. You can also check the Model View that should show the current model. If you still have problems a cut down sample will help. Best Regards, George ------------------------------------------------------------- George Cristian Bina mailto:george@oxygenxml.com <oXygen/> XML Editor - http://www.oxygenxml.com/

On Tuesday 17 August 2004 12:50, George Cristian Bina wrote:
After a learn structure operation oXygen will use the document structure to guide the content completion irrespective of the DTD declaration and if you have values for that attribute you should be able to insert them through the content completion popup. You can also check the Model View that should show the current model. If you still have problems a cut down sample will help.
Yahoo!. I got it working. So cool :P -- Sean Wheller sean@enbaya.co.za http://www.enbaya.co.za
participants (2)
-
George Cristian Bina
-
Sean Wheller