Forum Moderators: open

Message Too Old, No Replies

Embedding binary data/images in XHTML Basic?

This is possible in XML. Can the same be done in XHTML Basic?

         

mastermind085

10:55 am on Feb 12, 2003 (gmt 0)

10+ Year Member



hi
i wanted to know how to embed binary data/images as part of XHTML pages. Now this is possible in XML with base64 encoding.
now is this possible in XHTML?
to be more precise i wanted to know if it'll work in XHTML Basic 1.0 which is a minimal subset of XHTML 1.0
thanx
regards
Vasant

tedster

12:13 pm on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



XHTML Basic is the subset of XHTML that is designed for "other" appliances - that is, not for monitors. I haven't been into it practically, just a little reading.

According to this W3C reference [w3.org] it looks like XHTML Basic supports images. What other types of binary data might be supported I don't know.

* Basic text (including headings, paragraphs, and lists)
* Hyperlinks and links to related documents
* Basic forms
* Basic tables
* Images
* Meta information

This set of HTML features has been the starting point for the design of XHTML Basic.

Sorry I don't have more definitive info for you - hope the W3C reference helps.

tedster

8:59 pm on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I thought about it overnight, and I think it's a good assumption that the <object> tag was created to be a "universal" way to embed binary data. I found the reference for XHTML and the object tag, but it doesn't specifically mention XHTML basic.

W3C - Objects and XHTML [w3.org]

Given the W3C quote in my earlier post, it also seems likely that the <img> tag is valid in XHTML Basic. However, I still haven't located a definitive reference, so take that with the grain of salt it deserves.

[edited by: tedster at 2:08 am (utc) on Feb. 13, 2003]

BjarneDM

1:04 am on Feb 13, 2003 (gmt 0)

10+ Year Member



tedster :
that's correct. <img> is *very* slowly on it's way to be depreceated in favor of <object> as a more universal tag. even now with html 4.01 you can use <object> instaed of <img>

tedster

3:17 am on Feb 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, it looks like both the image module and the object module are considered XHTML Basic. So, you've got your choice.

This quote:

Modularization of XHTML" [XHTMLMOD] defines the XHTML modules used in the XHTML Basic document type.

W3C Reference [w3.org]

Links to this W3C Document [w3.org]. Both the object module and the image module are included.