TEIC / Stylesheets

TEI XSL Stylesheets
228 stars 124 forks source link

customising dataType valList fails #606

Open bwbohl opened 1 year ago

bwbohl commented 1 year ago

I tried to customise the allowed values in @cert by modifying teidata.certainty.

While this works:

<dataSpec module="tei" ident="teidata.certainty" mode="change">
    <content>
        <valList type="closed" mode="replace">
            <valItem ident="high" />
            <valItem ident="low"/>
        </valList>
    </content>
</dataSpec>

the following just ignores the mode="delete" attributes:

<dataSpec module="tei" ident="teidata.certainty" mode="change">
    <content>
        <valList type="closed" mode="change">
            <valItem ident="high" />
            <valItem ident="medium" mode="delete" />
            <valItem ident="low"/>
            <valItem ident="unknown" mode="delete" />
        </valList>
    </content>
</dataSpec>

This third example even just outputting medium and unknown as allowed values which is just the wrong way around!

<dataSpec module="tei" ident="teidata.certainty" mode="change">
    <content>
        <valList type="closed" mode="change">[EDIT: mode was replace now is change]
            <valItem ident="medium" mode="delete" />
            <valItem ident="unknown" mode="delete" />
        </valList>
    </content>
</dataSpec>

Although the resulting schema is just the way I want it when I use the first example, I think the other examples should work, too.

[EDIT]: Using tei 4.4.0 as source an TEI Stylesheets v7.55.0

ebeshero commented 1 week ago

@bwbohl I'm sorry we've not addressed this ticket more promptly, but we have been making some related changes in ODD processing of @mode. I don't think , and I'm wondering if we try this again now if we'll see the same trouble--or something different in the processing! Can you send us your ODD or a sample of it that we can help test?