#258 elementSpec delete|replace doesn't work when namespace given

ROMA
closed-fixed
5
2013-01-05
2011-03-10
No

Thought I should file in a bug, following an exchange between Peter Stadler and Sebasyian:

On 9 Mar 2011, at 10:57, Peter Stadler wrote:

just noticed that I couldn't delete or replace an element from my schema when I supplied a default namespace:
<elementSpec ident="incipit" ns="http://www.tei-c.org/ns/1.0" mode="delete" /> doesn't work while
<elementSpec ident="incipit" mode="delete" module="msdescription"/> does (using the current debian package with roma2 from the command line).

I'm pretty sure that it did work someday or am I missing something?

[SR] No, you are right, it used to work. Before, the @ns was ignored in this case. Now it is compared
with the @ns of the element you tried to delete, and the master TEI elements fail to make this assertion
explicitly.

Hmm. There are things not right here which will need a cleanup. For now you'll have to
not use the @ns under these circumstances, right tho it seems.

Discussion

  • Lou Burnard

    Lou Burnard - 2011-03-20
    • labels: --> Roma: Generating Schemas
    • milestone: --> 871214
    • assigned_to: nobody --> rahtz
     
  • Lou Burnard

    Lou Burnard - 2011-11-09
    • milestone: 871214 --> ROMA
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-01-05
    • status: open --> closed-fixed
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-01-05

    I have finally implemented a solution to this, so the example of
    <elementSpec ident="incipit" ns="http://www.tei-c.org/ns/1.0" mode="delete" />
    now does what is expected.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks