Message
Root element must have xml:lang attribute and must declare all namespaces that are used (xlink, oasis, mml, ali, xsi)
Root element must have xml:lang attribute and must declare all namespaces that are used (xlink, oasis, mml, ali, xsi)
This rule ASSERTS the following, raising an alert if FALSE:
let $root := $parsedXmlStart//element return
$root/Attribute[Name = 'xml:lang']
and $root/Attribute[Name = 'xmlns:xlink' and AttValue = '"http://www.w3.org/1999/xlink"']
and (not(.//mml:*) or $root/Attribute[Name = 'xmlns:mml' and AttValue = '"http://www.w3.org/1998/Math/MathML"'])
and (not(.//oasis:*) or $root/Attribute[Name = 'xmlns:oasis' and AttValue = '"http://www.niso.org/standards/z39-96/ns/oasis-exchange/table"'])
and (not(.//ali:*) or $root/Attribute[Name = 'xmlns:ali' and AttValue = '"http://www.niso.org/schemas/ali/1.0/"'])
and (not(.//@xsi:*) or $root/Attribute[Name = 'xmlns:xsi' and AttValue = '"http://www.w3.org/2001/XMLSchema-instance"'])