OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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

Subject: Re: [docbook-apps] A java applet in xhtml and image in fo output


I have do that (mystyle_chunk.xsl) :
<xsl:template match="processing-instruction('java')">
  <xsl:value-of select="." disable-output-escaping="yes"/>

<!-- ROLE pour fo => image et pour html => applet java ! -->
<!-- Active la sélection du role 'html' -->
<xsl:param name="use.role.for.mediaobject" select="1" />
<xsl:param name="preferred.mediaobject.role" select="html"/>

In my document xml :
                <?java <applet code="hades.gui.EditorInApplet.class"
  width="690" height="500"
  alt="Please enable Java to run this applet.">
<param name="Hades.UseSwingGUI" value="true" />
<param name="Hades.Editor.AutoStartSimulation" value="true" />
<param name="Hades.Editor.ViewMode" value="true" />
<param name="Hades.Editor.ZoomFit" value="true" />
<param name="debug" value="true" />
<param name="directory" value="." />
<param name="Hades.Applet.ExternalWindow" value="false" />
<param name="Hades.Applet.Design" value="../images/applets/dlatch.hds" />
<param name="Hades.Applet.AltImage" value="../images/applets/dlatch.gif" /> 
</applet> ?>

                        <imageobject role="fo-fop">
fileref="../images/applets/dlatch.gif" scalefit="1" scale="&magicscale;" />
                      <imageobject role="html">
                        <imagedata fileref="../images/applets/titreapplet.png" 
scalefit="1" scale="&magicscale;" />

So, in html chunk i see my applet running and a little image 
named "titreapplet.png". Only "dlatch.gif" in fo output !

I dont know how to make better !

Can you help me more or it's good like this ?
Best regards

Deux choses instruisent l'homme de toute nature: l'instinct et l'expérience.
Blaise Pascal

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