XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] An XML document is an information resource (series ofoctets) ... yes?

> Two More Questions:
>
> 1. What is an "information resource"?

https://en.wikipedia.org/wiki/HTTPRange-14 enters the room.

> 2. The parenthetical remark seems to imply that an information
> resource is a "series of octets". Is an information resource a series
> of octets?

I think a series of octets is inadquate by itself and the text you
quoted doesn’t presume a series of octets *by itself* is a resource. It
explicitly includes “described by the application/json media type”.

That’s a pretty common definition, in my experience: a sequence of
octets with a MIME type. If the MIME type describes a format realized as
a sequence of characters, you need an encoding as well, or some way to
get the encoding.

To see how this works in practice, consider how this sequence of octets
is interpreted with different MIME types:

0000000      743c    6261    656c    3c3e    7274    3c3e    6474    483e
0000020      6c65    6f6c    2f3c    6474    3c3e    742f    6261    656c
0000040      0a3e                                                        
0000042

For convenience, interpreted as text/plain, that’s

<table><tr><td>Hello</td></table>

Interpreted as text/html, that’s

<html><head></head><body><table><tbody><tr><td>Hello</td></tr></tbody></table></body></html>

Interpreted as application/xml, that’s not well formed. So there’s some
sense in which it is not an XML information resource.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh <ndw@nwalsh.com>
https://norm.tovey-walsh.com/

> Men, it has been well said, think in herds; it will be seen that they
> go mad in herds, while they only recover their senses slowly, and one
> by one.--Charles Mackay

Attachment: signature.asc
Description: PGP signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS