-
Notifications
You must be signed in to change notification settings - Fork 127
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
classSpec @generate is ignored in Pure ODD content model #582
Comments
Thanks @dmj! We should probably test the behavior of |
I agree with you that this is an error which should be detected by the ODD processor |
I have to admit, at the moment I am not sure I understand the reason for the existence of |
We are considering this blocked until we decide whether or not to keep |
I have been playing around with classes, Remember as you read this that although
My take on all this is that
Note-to-self $ egrep '^model\.[A-Za-z0-9._-]+\s*=' Exemplars/tei_all.rnc | perl -pe 's,\s*=.*$,,; s,_.*$,,;' | rank | egrep ' 1 ' | sort | perl -pe 's,^\s+1 ,,;' > /tmp/classes_only_1.txt
$ egrep '^model\.[A-Za-z0-9._-]+\s*=' Exemplars/tei_all.rnc | perl -pe 's,\s*=.*$,,; s,_.*$,,;' | rank | egrep ' 6 ' | sort | perl -pe 's,^\s+6 ,,;' > /tmp/classes_all_6.txt
$ xsel -t -m "//t:classSpec[@type='model'][ not( t:classes ) ]" -v "@ident" -n p5subset.xml | sort > /tmp/classes_sans_classes.txt
$ xsel -t -m "//t:classSpec[@type='model'][ t:classes ]" -v "@ident" -n p5subset.xml | sort > /tmp/classes_with_classes.txt |
Considere the following schema specification:
The
classRef
in theroot
element's content model asks the transpiler to create an alternation of the class members ("any one member of the class may appear"), theclassSpec
on the other hand declares that the members of the class are to be provided in sequence.From my understanding this should result in an error. The stylesheets (Version 4.4.0, Last updated on 19th April 2022, revision ff9cc28b0) seem to ignore the classSpec/@generate.
The text was updated successfully, but these errors were encountered: