You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have discovered what I think is a very peculiar failure of the Stylesheets to produce (what I think are) proper results in only one precise situation, while producing proper results in lots of similar situations.
My goal was to have an attribute whose possible values come from two different datatypes. We do this twice, in teidata.authority[1] and teidata.probCert. But I found it did not work for me when I was trying to similarly combine two datatypes that were not defined in P5, but rather were defined in my customization ODD.
This led (eventually — this took hours) to a small test ODD (which I will attach to this ticket on my next post[2]).
I wish I could say I understood at least the problem, if not the cause of the problem or a possible solution. But in fact, I do not grok why the Stylesheets only barf on the combination of tstdata.certainNonsense and teidata.certainty and not the others — nor do I know what happens if there are (lord forbid) references to more than 2 datatypes. In any case, it might be because that is the only case where both datatypes are defined directly with a <valList>, but that would be weird because some of the others contain a <valList>, too (even though it is not a direct child of <content>).
Notes
[1] Which I still think was a really terrible idea.
[2] In case anyone cares, I post the ODD after creating the ticket so that the ODD file can be named after the ticket number.
The text was updated successfully, but these errors were encountered:
The file issue_656.zip contains both a customization ODD and the RELAX NG (compact syntax) generated from that ODD using the roma2.sh command with the current dev branch version of both the Stylesheets and P5.
(I have not tested what happens if the .rnc file is created by Roma or oXygen or Stylesheets/bin/teitornc.)
I have discovered what I think is a very peculiar failure of the Stylesheets to produce (what I think are) proper results in only one precise situation, while producing proper results in lots of similar situations.
My goal was to have an attribute whose possible values come from two different datatypes. We do this twice, in teidata.authority[1] and teidata.probCert. But I found it did not work for me when I was trying to similarly combine two datatypes that were not defined in P5, but rather were defined in my customization ODD.
This led (eventually — this took hours) to a small test ODD (which I will attach to this ticket on my next post[2]).
But to summarize:
Given tstdata.nonsense, defined as
The datatype tstdata.probableNonsense, defined as
correctly yields
The datatype tstdata.nonsenseInterval, defined as
correctly yields
And several other similar cases work just fine. BUT, the datatype tstdata.certainNonsense, defined as
yields
which is clearly not correct.
I wish I could say I understood at least the problem, if not the cause of the problem or a possible solution. But in fact, I do not grok why the Stylesheets only barf on the combination of tstdata.certainNonsense and teidata.certainty and not the others — nor do I know what happens if there are (lord forbid) references to more than 2 datatypes. In any case, it might be because that is the only case where both datatypes are defined directly with a
<valList>
, but that would be weird because some of the others contain a<valList>
, too (even though it is not a direct child of<content>
).Notes
[1] Which I still think was a really terrible idea.
[2] In case anyone cares, I post the ODD after creating the ticket so that the ODD file can be named after the ticket number.
The text was updated successfully, but these errors were encountered: