element selection in author mode

Oxygen general issues.
eb621
Posts: 5
Joined: Tue Jul 31, 2012 1:32 pm

element selection in author mode

Post by eb621 »

Hi,

Below is a rough mock-up of where I have a problem. In oxygen text mode when I’m in <a:author-text> I can pull up note#xmlns=http://analysis from the element list but in author mode this is greyed out so not selectable even though it is legal. It seems to be the case that elements for the root namespace aren’t selectable in author mode even though at this point it’s within another namespace so the root namespace needs recalling at this point. Additionally <note/> can have only a child of <note-para/> but this option is greyed out in both author and text mode. How do I go about fixing this?

Thanks

Code: Select all


<document xmlns="http://analysis" xmlns:a="http://amendments">
<title>Health Protection (Local Authority Powers) (Wales) Regulations 2010</title>
<regulation xmlns="http://somewhere-else">
<number>1.—</number>
<title>Title</title>
<sub1>
<number>(1)</number>
<para-text align="left">Para-text.</para-text>
</sub1>
<a:author-amendment>
<a:author-text>
<note xmlns="http://analysis">
<note-para>note-para</note-para>
</note>
</a:author-text>
</a:author-amendment>
</regulation>
</document>
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: element selection in author mode

Post by Radu »

Hi Eleanor,

Oxygen tries to determine the elements which may be inserted at a certain offset based on the associated schema.
Could you also share with us the schema (and dependencies) which is used to validate the XML fragment you provided?
You can contact us directly using support@oxygenxml.com

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply