Skip to content

Empty mi causing failure #15

Description

@NSoiffer

A Wikipedia page (first mtr, second mtd of next to last entry) starts with an empty mi. For some reason, the default intent.yaml rule dies with

Replacement
[test: [  if: 'x: "count(*) > 0"' then:[intent:  xpath-name: x: "name(.)"
      children: [x: "*"]] else:[intent:  xpath-name: x: "name(.)"
      children: [x: "text()"]]]
]
...due to matching the following MathML with the pattern
x: "."
 <mi id='M283ygl4-17' data-id-added='true'></mi>
The patterns are in C:\Users\neils\MathCAT\Rules\intent.yaml.

caused by: replacing inside 'intent'
caused by: During replacement, no matching element found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions