Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning in DDI to fodt transformation #662

Open
nsenave opened this issue Aug 3, 2023 · 1 comment
Open

Warning in DDI to fodt transformation #662

nsenave opened this issue Aug 3, 2023 · 1 comment
Assignees

Comments

@nsenave
Copy link
Contributor

nsenave commented Aug 3, 2023

When running a mvn test, there is a warning in the log:

[main] WARN  f.i.e.t.x.EnoErrorListener     - Ambiguous rule match for /DDIInstance/s:StudyUnit[1]/d:Instrument[1]/d:ControlConstructReference[1]/d:Sequence[1]/d:ControlConstructReference[1]/d:Sequence[1]/d:ControlConstructReference[3]/d:IfThenElse[1]/d:ThenConstructReference[1]
Matches both "element(Q{ddi:datacollection:3_3}ThenConstructReference)[fn:empty(...)]" on line 319 of 
and "element(Q{ddi:datacollection:3_3}ThenConstructReference)[fn:not(...)]" on line 291 of 
net.sf.saxon.trans.XPathException: Ambiguous rule match for /DDIInstance/s:StudyUnit[1]/d:Instrument[1]/d:ControlConstructReference[1]/d:Sequence[1]/d:ControlConstructReference[1]/d:Sequence[1]/d:ControlConstructReference[3]/d:IfThenElse[1]/d:ThenConstructReference[1]
Matches both "element(Q{ddi:datacollection:3_3}ThenConstructReference)[fn:empty(...)]" on line 319 of 
and "element(Q{ddi:datacollection:3_3}ThenConstructReference)[fn:not(...)]" on line 291 of 
	at net.sf.saxon.trans.XPathException.fromXmlProcessingError(XPathException.java:164) ~[Saxon-HE-12.3.jar:?]

(...)

    at fr.insee.eno.test.TestDDI2FODT.simpleDiffTest(TestDDI2FODT.java:45) ~[test-classes/:?]
@nsenave
Copy link
Contributor Author

nsenave commented Aug 3, 2023

@BulotF (je reprends ta réponse pour en garder la trace)

Ce n'est qu'un warning en effet, mais ça révèle que, dans la sortie qui permet le fodt,
il y a 2 drivers qui peuvent s'appliquer à un même élément de code.
Je pense que ça peut mener à un problème d'affichage des filtres...
Le driver xf-group a été remplacé par un driver Filter, il aurait fallu supprimer le driver xf-group
pour qu'ils ne se chevauchent pas (ou le restreindre au champ qui resterait le sien)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants