[oXygen-user] ${ask} not working properly in Web Author

Jirka Kosek jirka at kosek.cz
Tue Oct 16 05:58:02 CDT 2018


Hi,

I'm creating Author action that should allow user to browse for an image
file and then insert appropriate DocBook fragment:

<figure xmlns="http://docbook.org/ns/docbook">
   <title>${caret}</title>
   <mediaobject>
    <imageobject>
      <imagedata fileref="${ask('Choose image file', relative_url, '')}"/>
    </imageobject>
  </mediaobject>
</figure>

I'm using
ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation
action for this.

This works as expected in desktop Autor. However in Web Author URL
chooser appears, I can choose file, filename shows in input box. But
when I press OK button to accept chosen filename, input box is cleared
and nothing happens. I can close URL chooser only by using Cancel button.

Many thanks in advance,

					Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka at kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181016/4deb2b15/attachment.sig>


More information about the oXygen-user mailing list