content completion feature extension idea

In validated editing mode, if the content completion mechanism is used to create a new element that isn't allowed to have child elements, could the mechanism create an empty tag instead of balanced start-end tags? This would save just a little bit of time when creating, for example, xref elements: http://www.docbook.org/tdg5/en/html/xref.html start tag/end tag/empty element tag terminology: http://www.w3.org/TR/xml11/#sec-logical-struct -- http://chris.chiasson.name/

Hi Chris, It was a problem with determining empty content in some cases. Now we visit the pattern and check to see if there are elements or text inside the element, if not then we consider it empty. The fix will be available shortly in version 8.2. In 8.2 there will be also some performance improvements when editing against a Relax NG schema, especially against DocBook 5 which is quite big. Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Chris Chiasson wrote:
In validated editing mode, if the content completion mechanism is used to create a new element that isn't allowed to have child elements, could the mechanism create an empty tag instead of balanced start-end tags? This would save just a little bit of time when creating, for example, xref elements: http://www.docbook.org/tdg5/en/html/xref.html
start tag/end tag/empty element tag terminology: http://www.w3.org/TR/xml11/#sec-logical-struct
participants (2)
-
Chris Chiasson
-
George Cristian Bina