Author mode - DocBook - insert para via action
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Author mode - DocBook - insert para via action
Hello,
if itemizedlist is created manually via insert element, empty 'listitem' is created automatically with it. Listitem element can't be empty, but if action 'insert para' is performed, para element is inserted after the whole list. It would be nice to fix it and place the para element to the correct place.
Jan
if itemizedlist is created manually via insert element, empty 'listitem' is created automatically with it. Listitem element can't be empty, but if action 'insert para' is performed, para element is inserted after the whole list. It would be nice to fix it and place the para element to the correct place.
Jan
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Author mode - DocBook - insert para via action
Post by sorin_ristache »
Hello,
The para element is inserted in the element where the cursor is placed. If the cursor is in a listitem element the new para is inserted in the same listitem element. This is true for both the insert para action from the content completion window and the action from the toolbar.
If the cursor is outside listitem and inside itemizedlist the new para element can be inserted only with the toolbar button and is inserted inside itemizedlist. The para element cannot be inserted with the content completion window because the schema does not allow the para element in that location. Do you insert the para element using the toolbar action when the cursor is outside listitem and inside itemizedlist? If not what do you mean by element inserted after the whole list?
Regards,
Sorin
The para element is inserted in the element where the cursor is placed. If the cursor is in a listitem element the new para is inserted in the same listitem element. This is true for both the insert para action from the content completion window and the action from the toolbar.
If the cursor is outside listitem and inside itemizedlist the new para element can be inserted only with the toolbar button and is inserted inside itemizedlist. The para element cannot be inserted with the content completion window because the schema does not allow the para element in that location. Do you insert the para element using the toolbar action when the cursor is outside listitem and inside itemizedlist? If not what do you mean by element inserted after the whole list?
Regards,
Sorin
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Re: Author mode - DocBook - insert para via action
What you are describing is supposed behaviour, but in reality it is different. Please try step by step procedure described in previous post. After inserting itemizedlist element from 'elements' toolbar with no other mouse click just launch action 'insert new paragraph'.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Author mode - DocBook - insert para via action
Post by sorin_ristache »
In fact I described the actions that I did in Author mode in a DocBook 4 document:
Did I miss something? Do you get a different result?
Regards,
Sorin
- press Enter to display content completion dialog in a location where itemizedlist is allowed by the DocBook DTD,
- select itemizedlist from the window with the list of elements, which inserts a listitem child automatically,
- press Enter again, select para which inserts a para child in listitem,
- type some characters inside the para element (optional step),
- move the cursor outside the para element but inside the listitem element using the right arrow key (optional step),
- press Enter again,
- select para. This action inserts a sibling para element, that is inside the listitem, not after the whole list.
Did I miss something? Do you get a different result?
Regards,
Sorin
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Re: Author mode - DocBook - insert para via action
Thanks for your patience.
Instead of third step please click on DocBook toolbar icon 'Add paragraph'. That's it. With your method everything is fine. But Add paragraph action works differently.
Instead of third step please click on DocBook toolbar icon 'Add paragraph'. That's it. With your method everything is fine. But Add paragraph action works differently.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Author mode - DocBook - insert para via action
Post by sorin_ristache »
In the third step of the above procedure it does not matter if I insert a new para element in the listitem using Enter and the content completion window or using the toolbar action called Insert a new paragraph. The new para element is inserted as child of the listitem element that was inserted automatically in the second step. This is expected behavior because for the same cursor position an action for inserting an element should modify the document in the same way (insert the same element name, with the same set of attributes added automatically, etc.).
I tested that in Oxygen 10.3 build number 2009090215. What build number do you use?
Regards,
Sorin
I tested that in Oxygen 10.3 build number 2009090215. What build number do you use?
Regards,
Sorin
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Re: Author mode - DocBook - insert para via action
The following video is taken from XML Editor 11.0, build 2009091617
http://www.screencast.com/t/8W2p1UwJKzJ
The same behaviour is detected in XML Author 10.3, build 2009070117
Vista 64-bit.
http://www.screencast.com/t/8W2p1UwJKzJ
The same behaviour is detected in XML Author 10.3, build 2009070117
Vista 64-bit.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Author mode - DocBook - insert para via action
Post by sorin_ristache »
Thank you for the screenshot. You get a different result because you insert the itemizedlist inside a para and in this case the new para is inserted after the enclosing para. I inserted the itemizedlist outside a para (the parent element of the inserted itemizedlist is sect1, not para). In your case the toolbar action for inserting a new para does not have the same effect as the content completion action for inserting a para. We will fix the toolbar action for your case too, that is it must insert the new para as child of listitem.
Regards,
Sorin
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service