Page MenuHomeClusterLabs Projects

Re-validate XML schema after resolving IDREFs
Open, WishlistPublic

Assigned To
None
Authored By
nrwahl2
Apr 2 2024, 9:24 PM
Tags
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

...assuming we don't already do this. As far as I know, we validate XML against a Relax NG schema only before expanding IDREFs. This doesn't ensure that the element with the referenced ID is actually valid in the given context.

We should definitely implement best practices in our schema code first. It's too convoluted to dive right into this task.

An XSL transform (using the XSL id() function) should be able to resolve the IDREFs, and then we can validate the transformed XML.

Origin: https://github.com/ClusterLabs/pacemaker/pull/3409#discussion_r1548573737

Event Timeline

nrwahl2 triaged this task as Wishlist priority.Apr 2 2024, 9:24 PM
nrwahl2 created this task.
nrwahl2 created this object with edit policy "Restricted Project (Project)".
nrwahl2 renamed this task from Re-validate XML schema again after resolving IDREFs to Re-validate XML schema after resolving IDREFs.Apr 3 2024, 4:06 AM