Thomas Dumm wrote:
>
> Me gain, but this time hopefully a short and easy question:
Not really, I'm affraid!
> When using java webstart to deploy the editor, how do I write a
> #template for image insertion, with a dummy placeholder image (say
> placeholder135mmx70mm.jpg? Problem: Where can I store the image and how
> do I reference in the #template to the placeholder image?
--> I've tested this:
<elementTemplate name="placeholder">
<img xmlns="" src="xxe-config:common/icons/placeholder.jpg"
alt="placeholder" />
</elementTemplate>
Where "xxe-config:" is specified as follows in XXE's main XML catalog.
<rewriteURI uriStartString="xxe-config:" rewritePrefix="." />
Unfortunately, this does *not* work because XML catalogs are not used to
resolve the URLs which are the sources of images.
For such templates, you need to specify a ``really absolute'' URL. Example:
<elementTemplate name="placeholder">
<img xmlns="" src="http://www.compendio.ch/pub/img/placeholder.jpg"
alt="placeholder" />
</elementTemplate>
--> If the image you want to specify is just a placeholder, may be a
solution is to properly style (using CSS) your image elements (and not
to define elaborate element templates for your images).
Example:
<elementTemplate name="img23">
<img xmlns="" src="???" alt="???" class="img23" />
</elementTemplate>
and:
img[class="img23"] {
display: inline;
content: image-viewport(attribute, src,
data-type, anyURI,
content-width, attr(width),
content-height, attr(height),
fallback-image, url(placeholder.jpg));
}
"placeholder.jpg" must be copied to the directory containing the CSS
style sheet. This will work fine with Java Web Start.
> Is there a
> variable of some sort to the local (client) XMLMind-Cache directory?
>
No. Java Web Start indeed uses a cache but it's a private, opaque, one.