Re: An XML document is an information resource (series of octets) ... yes?

Rick Jelliffe <[email protected]> Fri, 5 Apr 2024 15:12:28 +1100
Newsgroups gmane.text.xml.devel
Message-ID <CADUdYQUa4Os2pmH_sXjnci-Kfyx7qEAYJZ79kVwXyT_7xYDkcQ@mail.gmail.com>
--000000000000a83dd8061551aa78
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

The RFC 7303 is quite careful about using "document": what is being
transmitted is indeed entities.

It says:
````

   *document entities*:  The media types application/xml or text/xml, or a
      more specific media type (see Section 9.6), SHOULD be used.

   external DTD subsets:  The media type application/xml-dtd SHOULD be
      used.  The media types application/xml and text/xml MUST NOT be
      used.

   external parsed entities:  The media types application/xml-external-
      parsed-entity or text/xml-external-parsed-entity SHOULD be used.
      The media types application/xml and text/xml MUST NOT be used
      unless the parsed entities are also well-formed "document
      entities"

   external parameter entities:  The media type application/xml-dtd
      SHOULD be used.  The media types application/xml and text/xml MUST
      NOT be used.
````

Regards

Rick


On Tue, Jun 20, 2023 at 11:15=E2=80=AFPM Thomas Passin <[email protected]=
> wrote:

> On 6/20/2023 8:36 AM, Roger L Costello wrote:
> > Hi Folks,
> >
> > This document [1] defines JSON documents this way:
> >
> > A JSON document is an information resource (series of octets) described
> by the application/json media type.
> >
> > Would it be correct to define XML documents in an analogous way:
> >
> > An XML document is an information resource (series of octets) described
> by the application/xml media type.
>
> XML documents don't always have (and shouldn't always have, IMO) the
> application/xml media type.  And an XML document is (by the XML
> Recommendation) "composed of units called entities."  Since some of
> those entities may be included by reference, an XML document may be more
> than the collection of octets that compose it.
>
> > Two More Questions:
> >
> > 1. What is an "information resource"?
> >
> > 2. The parenthetical remark seems to imply that an information resource
> is a "series of octets". Is an information resource a series of octets?
> >
> > /Roger
> >
> > [1]
> https://json-schema.org/draft/2020-12/json-schema-core.html#name-json-doc=
ument
> >
> > _______________________________________________________________________
> >
> > XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> > to support XML implementation and development. To minimize
> > spam in the archives, you must subscribe before posting.
> >
> > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > Or unsubscribe: [email protected]
> > subscribe: [email protected]
> > List archive: http://lists.xml.org/archives/xml-dev/
> > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> >
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: [email protected]
> subscribe: [email protected]
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>

--000000000000a83dd8061551aa78
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>The RFC 7303 is quite careful about using &quot;docum=
ent&quot;: what is being transmitted is indeed entities.</div><div><br></di=
v><div>It says:</div><div>````<br></div><div><pre>   <b>document entities</=
b>:  The media types application/xml or text/xml, or a
      more specific media type (see Section 9.6), SHOULD be used.

   external DTD subsets:  The media type application/xml-dtd SHOULD be
      used.  The media types application/xml and text/xml MUST NOT be
      used.

   external parsed entities:  The media types application/xml-external-
      parsed-entity or text/xml-external-parsed-entity SHOULD be used.
      The media types application/xml and text/xml MUST NOT be used
      unless the parsed entities are also well-formed &quot;document
      entities&quot;<br>
   external parameter entities:  The media type application/xml-dtd
      SHOULD be used.  The media types application/xml and text/xml MUST
      NOT be used.<br>````<br><br></pre><pre>Regards<br></pre><pre>Rick<br>=
</pre></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"=
gmail_attr">On Tue, Jun 20, 2023 at 11:15=E2=80=AFPM Thomas Passin &lt;<a h=
ref=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<br></=
div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/20/2023 8:36 AM,=
 Roger L Costello wrote:<br>
&gt; Hi Folks,<br>
&gt; <br>
&gt; This document [1] defines JSON documents this way:<br>
&gt; <br>
&gt; A JSON document is an information resource (series of octets) describe=
d by the application/json media type.<br>
&gt; <br>
&gt; Would it be correct to define XML documents in an analogous way:<br>
&gt; <br>
&gt; An XML document is an information resource (series of octets) describe=
d by the application/xml media type.<br>
<br>
XML documents don&#39;t always have (and shouldn&#39;t always have, IMO) th=
e <br>
application/xml media type.=C2=A0 And an XML document is (by the XML <br>
Recommendation) &quot;composed of units called entities.&quot;=C2=A0 Since =
some of <br>
those entities may be included by reference, an XML document may be more <b=
r>
than the collection of octets that compose it.<br>
<br>
&gt; Two More Questions:<br>
&gt; <br>
&gt; 1. What is an &quot;information resource&quot;?<br>
&gt; <br>
&gt; 2. The parenthetical remark seems to imply that an information resourc=
e is a &quot;series of octets&quot;. Is an information resource a series of=
 octets?<br>
&gt; <br>
&gt; /Roger<br>
&gt; <br>
&gt; [1] <a href=3D"https://json-schema.org/draft/2020-12/json-schema-core.=
html#name-json-document" rel=3D"noreferrer" target=3D"_blank">https://json-=
schema.org/draft/2020-12/json-schema-core.html#name-json-document</a><br>
&gt; <br>
&gt; ______________________________________________________________________=
_<br>
&gt; <br>
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS<br>
&gt; to support XML implementation and development. To minimize<br>
&gt; spam in the archives, you must subscribe before posting.<br>
&gt; <br>
&gt; [Un]Subscribe/change address: <a href=3D"http://www.oasis-open.org/mlm=
anage/" rel=3D"noreferrer" target=3D"_blank">http://www.oasis-open.org/mlma=
nage/</a><br>
&gt; Or unsubscribe: <a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a><br>
&gt; subscribe: <a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a><br>
&gt; List archive: <a href=3D"http://lists.xml.org/archives/xml-dev/" rel=
=3D"noreferrer" target=3D"_blank">http://lists.xml.org/archives/xml-dev/</a=
><br>
&gt; List Guidelines: <a href=3D"http://www.oasis-open.org/maillists/guidel=
ines.php" rel=3D"noreferrer" target=3D"_blank">http://www.oasis-open.org/ma=
illists/guidelines.php</a><br>
&gt; <br>
<br>
<br>
_______________________________________________________________________<br>
<br>
XML-DEV is a publicly archived, unmoderated list hosted by OASIS<br>
to support XML implementation and development. To minimize<br>
spam in the archives, you must subscribe before posting.<br>
<br>
[Un]Subscribe/change address: <a href=3D"http://www.oasis-open.org/mlmanage=
/" rel=3D"noreferrer" target=3D"_blank">http://www.oasis-open.org/mlmanage/=
</a><br>
Or unsubscribe: <a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a><br>
subscribe: <a href=3D"mailto:[email protected]" target=3D"_bl=
ank">[email protected]</a><br>
List archive: <a href=3D"http://lists.xml.org/archives/xml-dev/" rel=3D"nor=
eferrer" target=3D"_blank">http://lists.xml.org/archives/xml-dev/</a><br>
List Guidelines: <a href=3D"http://www.oasis-open.org/maillists/guidelines.=
php" rel=3D"noreferrer" target=3D"_blank">http://www.oasis-open.org/maillis=
ts/guidelines.php</a><br>
<br>
</blockquote></div>

--000000000000a83dd8061551aa78--