OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Taking a cue from Microsoft Word


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

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 Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

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.


        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.



        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
        subscribe: 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]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS