Invalid elements suggested (DocBook / Relax NG)
Posted: Tue Aug 20, 2019 4:10 pm
Hi,
writing a docbook 5 file, i found a strange behaviour with the Content Completion Assistent.
I wanted to insert a new element within an empty caption element. The Content Completion Assistent suggested inline Elements like abbrev or emphasis, which is wrong. Following this suggestion immediatly leads to an error, because neither abbrev nor emphasis is allowed as a direct child of caption.
I checked this with a a brand new DocBook 5 File (empty caption Element as root) in a new Oxygen Projekt and got the same wrong behaviour . As far as i can see the content model which is used by the Content Completion Assistent seems to be wrong, while validating is correct.
Both files have the usual xml-model PIs for DocBook 5 from the Oxygen Template for DocBook book or article documents.
I did not post in the DocBook Part of this Forum, because i suspect a bug with Relax NG based Content Completion. However, looking carefully at the Properties Window for the new file, i found the following value for the Content Completion entry:
Please note the double slashes between frameworks and docbook.
Environment is Oxygen 21.2 Build 2019071807 on Windows 10 64 bit.
Thanks,
Frank Steimke
writing a docbook 5 file, i found a strange behaviour with the Content Completion Assistent.
I wanted to insert a new element within an empty caption element. The Content Completion Assistent suggested inline Elements like abbrev or emphasis, which is wrong. Following this suggestion immediatly leads to an error, because neither abbrev nor emphasis is allowed as a direct child of caption.
I checked this with a a brand new DocBook 5 File (empty caption Element as root) in a new Oxygen Projekt and got the same wrong behaviour . As far as i can see the content model which is used by the Content Completion Assistent seems to be wrong, while validating is correct.
Both files have the usual xml-model PIs for DocBook 5 from the Oxygen Template for DocBook book or article documents.
I did not post in the DocBook Part of this Forum, because i suspect a bug with Relax NG based Content Completion. However, looking carefully at the Properties Window for the new file, i found the following value for the Content Completion entry:
Code: Select all
file:/C:/Program Files/Oxygen XML Editor 21//frameworks/docbook/5.0/rng/docbook.rng
Environment is Oxygen 21.2 Build 2019071807 on Windows 10 64 bit.
Thanks,
Frank Steimke