Rahul Agarwal wrote:

It works fine if used in plain HTML and opened in browser; but gives error message "Could not load CoverageActions.js" if used in XHTML and rendered through Orbeon. I tried other ways to give path in "src" like "./JavaScript/CoverageActions.js" , "JavaScript/CoverageActions.js" etc but nothing worked.

Rahul,

It looks like you are using the default oxf-theme/theme.xsl. In this stylesheet, we take into account a <script type="...">...</script> (i.e. inline JavaScript) that you might have in your view, but not <script type="..." src="..."/> (link to external file).

Try to modify your theme.xsl to also copy the "src" attribute, as follows:

<xsl:if test="/xhtml:html/xhtml:head/xhtml:script">
    <script type="{/xhtml:html/xhtml:head/xhtml:script/@type}"
                src="{/xhtml:html/xhtml:head/xhtml:script/@src}">
        <xsl:value-of
           select="/xhtml:html/xhtml:head/xhtml:script/node()"/>
    </script>
</xsl:if>

Let us know if this fixes the issue.

Alex


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to