[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Taking a cue from Microsoft Word

  • From: George Cristian Bina <george@oxygenxml.com>
  • To: James Fuller <james.fuller.2007@gmail.com>, Ihe Onwuka <ihe.onwuka@g...>
  • Date: Sun, 08 Dec 2013 00:24:12 +0200

Re:  Taking a cue from Microsoft Word
Hi,

The second part already works in a similar way in oXygen, for example, if you have an element not present in the schema then
- you can invoke the content completion inside that (CTRL+Space) and oXygen will show the available elements, then selecting one of the valid proposals will get that element replaced with the valid one
- you can use the contextual menu (right click) then select Refactoring->Rename element and choose the one you want to replace the invalid element
http://screencast.com/t/IFYQvLt0

I am not sure about the first case... in general when someone creates a document the schema is not under development at that point or that user has no authority to change the schema. There is also no intermediate level, like a local dictionary, where you can add local, user specific element definitions.
The closest you get now in oXygen is to invoke the contextual menu->Show definition action (or CTRL+Click or CMD+Click on the parent element) to go to the definition of that element in the schema and then add the new element there. If there will be enough interest for this then I think we can add a refactoring action that can be triggered from an invalid element to add a definition of that element to the associated schema or DTD.

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 12/7/13, 3:39 PM, James Fuller wrote:
I would have thought OxygenXML has the extension mechanisms to build
such a feature.

Jim Fuller


On Sat, Dec 7, 2013 at 2:26 PM, Ihe Onwuka <ihe.onwuka@gmail.com
<mailto:ihe.onwuka@gmail.com>> wrote:

    OK this is a lazy response but here goes anyway.

    MS Word's "intelligent" capability probably emanates from a
    probabilistic analysis performed on a large corpus of data from
    which it computes the most likely thing that was intended.

    Do you have such a corpus and such a model for your schema?




    On Sat, Dec 7, 2013 at 1:14 PM, Costello, Roger L.
    <costello@mitre.org <mailto:costello@mitre.org>> wrote:

        Hi Folks,

        Today I opened Microsoft Word and typed a document.

        In the course of typing the document I used a word that MS Word
        did not understand. Word put a red squiggly line under it. I
        right-mouse clicked on the word and selected "Add to
        Dictionary." From that point on Word recognized that new word.
        Also in the course of typing my document I misspelled a word. I
        right-mouse clicked on the misspelled word and MS Word presented
        to me a list of possible words from which I selected the
        correctly spelled word.

        Wow!

        MS Word is an intelligent system: through my interaction it
        continually expands its knowledge.

        That is a fantastic thing.

        Imagine a similar capability in an XML editor. The editor
        understands my XML vocabulary: it has an XML Schema. I type my
        XML document. When I use an element that the editor does not
        understand it puts a red squiggly line under it. I right-mouse
        click on it and select "Add to XML Schema" which results in
        modifying the XML Schema with the new element. When I err, the
        editor underlines the incorrect element with a red squiggly
        line. I right-mouse click on the erroneous element and the
        editor shows me a list of possible correct elements from which I
        select one.

        That would be neat.

        /Roger

        _______________________________________________________________________

        XML-DEV is a publicly archived, unmoderated list hosted by OASIS
        to support XML implementation and development. To minimize
        spam in the archives, you must subscribe before posting.

        [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
        Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
        <mailto:xml-dev-unsubscribe@lists.xml.org>
        subscribe: xml-dev-subscribe@lists.xml.org
        <mailto:xml-dev-subscribe@lists.xml.org>
        List archive: http://lists.xml.org/archives/xml-dev/
        List Guidelines: http://www.oasis-open.org/maillists/guidelines.php





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.