hassanakbar4 / tractive-test

0 stars 0 forks source link

references in <middle> is allowed #350

Closed hassanakbar4 closed 2 years ago

hassanakbar4 commented 6 years ago

component_Version_3_cli_txt resolution_worksforme type_defect | by miek@miek.nl


Section 2.42 RFC 7991:

This element appears as a child element of (Section 2.8).

However this xml snippet is allowed and parsed:

<section><name>Syntax</name>
<t>The high-order bit of the IP fragment offset field is the only unused
bit in the IP header.  Accordingly, the selection of the bit position
is not left to IANA.</t>
<t>The bit field is laid out as follows:</t>
</section>
<references>
<name>Normative References</name><xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.0791.xml"/>
<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
</references>

</middle>

Quite convenient though, but not 100% according to the spec.


Issue migrated from trac:350 at 2021-10-20 18:26:47 +0500

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Huh. Right. The schema validation happens before xinclude processing. Mph. Will have to revisit this.

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` toworksforme`

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Hmm. Just tried using in middle, and I see this warning:

tests/input/elements.xml(0): Warning: Invalid document before running preptool: Did not expect element references there, line 253

Closing as worksforme