Skip to content
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

Root namespace in the child nodes #96

Open
suleman-uzair opened this issue Oct 2, 2024 · 1 comment
Open

Root namespace in the child nodes #96

suleman-uzair opened this issue Oct 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@suleman-uzair
Copy link

suleman-uzair commented Oct 2, 2024

The namespace of the root element is passed onto child elements using OxAdapter:

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle xmlns="http://www.w3.org/1998/Math/MathML">
    <mi xmlns="http://www.w3.org/1998/Math/MathML">a</mi>
  </mstyle>
</math>

Whereas, NokogiriAdapter does not:

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle>
    <mi>a</mi>
  </mstyle>
</math>
@HassanAkbar HassanAkbar self-assigned this Oct 2, 2024
@ronaldtse
Copy link
Contributor

I think the NokogiriAdapter behavior is correct here, where the default namespace is assumed by the child nodes. What does the XML Schema spec say?

@ronaldtse ronaldtse added the bug Something isn't working label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants