In my rnc schema file, I have an element "paragraph" defined as: paragraph = element import:paragraph { palette?, (text | (english, relevance?)) } palette = attribute palette { text } english = element import:english { text } relevance = element import:relevance { always | (if_exposure | not_exposure | if_exposure_code | code_equal_or_less_than | code_equal_or_greater_than | in_state | employees_in_state | max_employees_in_state | if_exposure_universe | not_exposure_universe | or | and | eiffel | is_required | not_is_required | not_in_state )+ } In my document I had empty "paragraph" elements but nxml-mode did not identify the document as invalid. Neal Lester Cell: 408/348-1939
Neal Lester <neal@3dsafety.com> writes: > In my rnc schema file, I have an element "paragraph" defined as: > > paragraph = element import:paragraph { palette?, (text | (english, > relevance?)) } > > palette = attribute palette { text } > > english = element import:english { text } > > relevance = element import:relevance { always | (if_exposure | > not_exposure | if_exposure_code | code_equal_or_less_than | > code_equal_or_greater_than | in_state | employees_in_state | > max_employees_in_state | if_exposure_universe | not_exposure_universe | > or | and | eiffel | is_required | not_is_required | not_in_state )+ } > > In my document I had empty "paragraph" elements but nxml-mode did not > identify the document as invalid. (I'm going through old bug reports that unfortunately got no response at the time.) To ensure that we're looking at the same problem, do you have a complete test case, starting from "emacs -Q"? That is, the rnc schema file and the XML file that nxml mode does the wrong thing with? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
Neal Lester <neallester@gmail.com> writes:
> I've attached the rnc files. I no longer have the broken xml files.
Thanks, but without an example XML file that reproduces the problem,
it's going to be more difficult to debug.
Neal Lester <neallester@gmail.com> writes:
> I understand, but it's been what, almost 10 years? I fixed the problem
> xml at that time and have long since forgotten where the issue was.
It's unfortunate that this didn't receive more attention at the time,
but it sounds like we won't make any progress here now, so I'm closing
this bug report.