Hi folks,

I have a form that the user is uploading a SVG image and I would like to
show a preview of it after the file has been selected.

I have seen that the <xf:include src=""> element allows us to place the SVG
image in the form like this:

<xf:include src="images/blue-circle.svg"/>

Here is the example on github:

https://github.com/AlainCouthures/xsltforms/blob/master/testsuite/samples/flags.xhtml

Is there a way to dynamically load the image?  I tried:

<xf:include src="images/{$filename}"/>

but that did not work.

Perhaps some combination of an XForms on-change event and xf:load?

Thanks! - Dan

-- 
Dan McCreary
http://danmccreary.com
Co-author: Making Sense of NoSQL <http://manning.com/mccreary>
office: (952) 931-9198
cell: (612) 986-1552
skype: dmccreary47
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to