XP> Incorrect example in Appendix B.3 of XHTML Print

XP> Incorrect example in Appendix B.3 of XHTML Print

ElliottBradshaw at oaktech.com ElliottBradshaw at oaktech.com
Fri Aug 1 11:06:49 EDT 2003


I see two issues here, perhaps separable.


1.  Use of inline data.

This can be accomplished by adding support for the data scheme.

Examples (from Fujisawa-san):

<object height="20 mm" width="20 mm" type="image/jpeg"
     data="data:image/jpeg;base64,aGh67Fghsapa0Hji7dfGSweTa . . . ">
     Example Image
</object>

or

<img height="20 mm" width="20 mm" alt="Example Image"
     src="data:image/jpeg;base64,aGh67Fghsapa0Hji7dfGSweTa . . . " />


2.  Separation of the data from the reference

This is where the declare attribute comes in.  I went back and read

  http://www.w3.org/TR/html4/struct/objects.html#h-13.3.4

It seems to me that the declare facility would let a client supply the
content for the object before its reference, not after.  If the requirement
is that the client can send the image data at the end, I'm not sure that
HTML supports that.

If there is a requirement that the client can send the data first, then
refer to it, then an example (again, thanks Fujisawa) is:

<object id="image_1" declare="declare" type="image/jpeg"
     data="data:image/jpeg;base64,aGh67Fghsapa0Hji7dfGSweTa . . . ">
</object>

. . . .

<object height="20 mm" width="20 mm"
     data="#image_1" >
</object>


I think the first requirement is good to have, but we can probably drop the
second, especially since the ordering is probably not what we want.




------------------------------------------
Elliott Bradshaw
Director, Software Engineering
Oak Technology Imaging Group
781 638-7534



                                                                                                 
                    Jun Fujisawa                                                                 
                    <fujisawa.jun at ca       To:     don at lexmark.com                               
                    non.co.jp>             cc:     xp at pwg.org, jim.bigelow at hp.com                
                    Sent by:               Subject:     Re: XP> Incorrect example in Appendix    
                    owner-xp at pwg.org        B.3 of XHTML Print                                   
                                                                                                 
                                                                                                 
                    07/28/2003 06:43                                                             
                    AM                                                                           
                                                                                                 




Hello Dan,

At 8:15 AM -0400 03.7.25, don at lexmark.com wrote:
>The intent of this example was to show how an image can be declared inline
>with the other XHTML while the actual data for the image may come later.

I don't understand the intent. I you want to get actual image data later
(not at the declaration), you can just use 'img' or 'object' element
without 'declare' attribute.

>If the example provided is incorrect, can
>you provide an example that achieves this separation?

The following example shows one type of separation, but I don't think
that meets your need.

<object id="image_1" declare="declare" type="image/jpeg"
     data="data:image/jpeg;base64,aGh67Fghsapa0Hji7dfGSweTa . . . ">
</object>

. . . .

<object height="20 mm" width="20 mm"
     data="#image_1" >
</object>

--
Jun Fujisawa
<mailto:fujisawa.jun at canon.co.jp>






More information about the Xp mailing list