we use the <data>...</data> section as a 'bucket' for, well, data -- data
that is
related to the document, but that is not inline content. we can then use
inline
markers that just reference them by name -- this let's us use an image in
several
places in a document and have them share one copy of the actual image bits....
for example (this is taken from abi/test/wp/abi_memo.abw):
<abiword>
<section>
<p>Testing 1 2 3</p>
<p>An Image: <image dataid="D:\abi\images\a.png_1" props="height:1.00in;
width:1.00in"/></p>
<p>Testing 1 2 3</p>
</section>
<data>
<d name="D:\abi\images\a.png_1">
iVBORw0KGgoAAAANSUhEUgAAAGAAAABdCAIAAADVHvQcAAATIElEQVR4nOxcW2xk2VXdrn54
2z1t73I/fOz0dN/peXQ1GkgpRIyRQDHSJGOJjFJCQbTQICykEAsh5C/wp7+gJBCyxID6I0L9
...
UugKSqErKIWuoBS6glLoCkrhHw+c1/CXIAPEAAAAAElFTkSuQmCC
</d>
</data>
</abiword>
hope this helps,
jeff
============================================================================
====
At 10:11 PM 5/23/99 -0700, Robert G. Werner wrote:
>Matt and others,
> How does Abi store the graphic file in relation to the document that
>it is embeded in?
> In terms of HTML we would have the graphic be a separate file (as
far
>as the local viewer is concerned) but then integrated into the file when it
>is sent to the browser. Thus objects in different formats are stored on disk
>as separate files. But most Word Processors I've used stored the graphics
as
>part of the document file itself? This is obviously optimal from a user's
>point of view because when they want to share the file they only have to
copy
>one file. But it doesn't exactly make sense from the program's point of
>view.
> If this is a capability of XML and I'm just ignorant, then please
>let me know. Otherwise, I'm very interested in the method you all decided
>to use to to associate the graphics files with the AbiWord documents.
>
>Robert G. Werner
>rwerner@lx1.microbsys.com
>Impeach Conggress!!
>
>What does not destroy me, makes me stronger.
> -- Nietzsche
>