Page 1 of 1

dependencies in cc_config.xml

Posted: Wed Jun 21, 2023 9:41 pm
by OliverG
Hi there,
I ran into an odd problem with cc_config.xml:
I put for example

Code: Select all

<valueProposals path="tei:div/@type"> ... </valueProposals>
<valueProposals path="tei:p/@type"> ... </valueProposals>
in this order, while my document (TEI) had <p> as child of <div>:

Code: Select all

<div><p>...</p></div>.
Then the proposed values for "tei:div/@type" were also shown on <p> and were in fact overriding the second value proposals.
BUT: When I reversed the order of the value proposals in the config file to

Code: Select all

<valueProposals path="tei:p/@type"> ... </valueProposals>
<valueProposals path="tei:div/@type"> ... </valueProposals>
it worked.
I verified this with <lg> / <l> respectively.
So my question is, whether there are intrinsic rules for setting up the cc_config.xml, which I don't know and only stumbled upon by trial and error.
Many thanks for any help in understanding what I'm actually doing here.
Kind regards
Oliver

Re: dependencies in cc_config.xml

Posted: Thu Jun 22, 2023 1:08 pm
by chrispitude
Hi Oliver,

I was able to reproduce this with the @outputclass attribute in the following testcase:

cc_config_experiment.zip

Re: dependencies in cc_config.xml

Posted: Fri Jun 23, 2023 12:00 pm
by OliverG
Hi Chris,
thanks for confirming this.
It looks like a bug, doesn't it? I mean the respective paths are different and explicitly given. So why is - in your example - "div/@outputclass[values-for-div]" overriding "p/@outputclass[values-for-p]"? I'm curious for the explanation.

Re: dependencies in cc_config.xml

Posted: Thu Jun 29, 2023 2:56 pm
by chrispitude
Hi Oliver,

It does seem like a bug to me too.

Re: dependencies in cc_config.xml

Posted: Thu Jun 29, 2023 4:25 pm
by alex_jitianu
Hi,
Olivier, thank you for reporting this issue. Chris, thank you for confirming it and for the samples. I also confirm that this is an indeed an issue. I've recorded an issue to investigate and understand the issue and hopefully we will release the fix for the next release.

Best regards,
Alex

Re: dependencies in cc_config.xml

Posted: Mon Jul 03, 2023 12:06 pm
by OliverG
Thank you, Alex, for your response and action.

Re: dependencies in cc_config.xml

Posted: Wed May 21, 2025 6:47 pm
by damarislc
Hello,
Did you get an update in this issue? I'm having the same problem and its been 2 years already.

Re: dependencies in cc_config.xml

Posted: Thu May 22, 2025 4:09 pm
by Radu
Hi,
I'm testing with Oxygen 27.1 and I can not quite reproduce the problem using Chris' sample "cc_config_experiment.zip" project.
What version of Oxygen do you have? Can you create a small sample framework and sample file with which your problem can be reproduced? Just to check if it's the same problem or not.
Regards,
Radu