Inserting equations within lists

Questions about XML that are not covered by the other forums should go here.
nschwartz
Posts: 2
Joined: Mon May 13, 2019 3:03 pm

Inserting equations within lists

Post by nschwartz »

I've got a list that contains a MathML equation within one of the middle list items. The XML document invalidates as soon as I try to insert the equation within the <litem> tags, and will only validate if the equation remains entirely outside of the <listing> tags. This causes the list items appearing after the equation to become part of a new list with restarted numbering, when they should be a continuation of the previous list. Any advice on how to keep my equation without messing with the numbering of my list?
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Inserting equations within lists

Post by Radu »

Hi,

You seem to use a custom XML vocabulary so you probably need to modify the schema (DTD, XML or Relax NG Schema) so that the mathml content is allowed in the elements where you want to insert it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
nschwartz
Posts: 2
Joined: Mon May 13, 2019 3:03 pm

Re: Inserting equations within lists

Post by nschwartz »

Thank you, that's really helpful!

-N
Post Reply