Can I conditionally include javascript file and css files.
<xbl:script src="/apps/xforms-sandbox/samples/myfile.js" />
Can this be done conditionally?
At this point, in Orbeon Forms, you can't conditionally include scripts with <xbl:script>
or CSS with <xbl:style>
. To include dynamic resources, use HTML the elements <xhtml:script>
and <xhtml:style>
you generate with XSTL, inside the <xbl:template>
of your XBL component. If you can use static resource, you should:
<xbl:script>
and <xbl:style>
. Yes, but this is a bug, which hopefully we'll get a chance to fix soon.<xbl:script>
and <xbl:style>
.