#42 problems when adding elements in Roma

ROMA
closed-fixed
5
2008-11-02
2008-07-24
No

I think there are two anomalies to the "Add elements" tab in Roma (<http://www.tei-c.org/Roma/startroma.php?mode=listAddedElements>). I'll describe the problems and provide a way of reproducing them, thereby pointing to two screenshots and an ODD file. I'll try to add those in a zip file to illustrate my point.

1. When adding a new element with the same name as an existing TEI element, but in a different namespace, Roma objects with the error message: "Element already exists". I admit that adding elements with the same name is questionable, but thought that's what namespaces were for?
--> steps taken:
1. start from http://www.tei-c.org/Roma/ --> 'Submit'
2. move to http://www.tei-c.org/Roma/startroma.php?mode=addElements
3. choose 'p' as element name; "http://www.example.org/ns/nonTEI" as namespace
4. press 'Submit'
--> result: romaAdd1.jpg

2. After successfully adding an element, the list of added elements shows a 'Submit query' button. If that is pressed, the Roma interface presents a new empty input screen for adding new elements. After successful addition of a new element, only the latter element shows up in the "List of added elements". What seems to happen underneath is that pressing the 'Submit query' button in the screen listing the added elements changes the "add" mode of these elements to "change" in the underlying ODD file. I think this is a bug; apparently the 'Submit query' button at this stage is not needed at all.
--> steps taken:
1. start from http://www.tei-c.org/Roma/ --> 'Submit'
2. move to http://www.tei-c.org/Roma/startroma.php?mode=addElements
3. add an element 'blabla' in namespace "http://www.example.org/ns/nonTEI", belonging to the "model.divLike" class --> 'Submit'
4. press 'Submit' in the list of added elements (romaAdd2.jpg)
5. add a new element 'blabla2' in namespace "http://www.example.org/ns/nonTEI", belonging to the "model.divLike" class --> 'Submit'
6. the list of added elements only shows "blabla2"
7. generate the ODD file
--> result: myTei.xml

Ron

Discussion

  •  
    Attachments
  • Lou Burnard
    Lou Burnard
    2008-08-17

    • milestone: --> ROMA
     
  • Syd Bauman
    Syd Bauman
    2008-08-19

    Logged In: YES
    user_id=686243
    Originator: NO

    I have duplicated both of these errors.
    I've also been reminded of another as I tested this: on the first attempt to change http://www.example.org/ns/nonTEI to some other namespace, whether on the "Customize" tab or the "Add Elements" tab, the namespace is changed back to what it was when I submit.

     
  • Lou Burnard
    Lou Burnard
    2008-09-03

    • assigned_to: nobody --> rahtz
     
  • Logged In: YES
    user_id=95949
    Originator: NO

    Agreed, these are bugs. I'll see when I can fit in fixes, unless someone else offers patches first.

     
    • status: open --> closed
     
    • status: closed --> closed-fixed