xsl-list
[Top] [All Lists]

Re: The old problem of Javascript, XSL and ampersand...

2005-01-25 03:54:30
My apologies. I should have included everything to begin with, but it gets a bit unweildy.

XSL : (I have commented out the CDATA which didn't work, and tried replacing the output method with html)

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> <xsl:output method="xml" omit-xml-declaration="yes" standalone="no" indent="yes"/>
<!--
<xsl:text disable-output-escaping="yes">
<![CDATA[
-->
    <script type="text/javascript" src="../IM/assets/dialog.js"></script>
    <script type="text/javascript" src="../IM/IMEStandalone.js"></script>
    <script type="text/javascript">
     var manager = new ImageManager('../IM/','en');

   ImageSelector =
       {
   update : function(params)
        {
           if(this.field && this.field.value != null)
       {
          this.field.value = params.f_file; //params.f_url
        }
       },
   select: function(textfieldID)
   {
       this.field = document.getElementById(textfieldID);
       manager.popManager(this);
   }
   };
   </script>
<!--
]]>
</xsl:text>
-->
    <form action="" method="POST">
<div onClick="ImageSelector.select('file');"><xsl:value-of select="."/></div>
             <input type="text" name="file"/>
    </form>
</xsl:template>

</xsl:stylesheet>

Many thanks for your patience,

Ben

Vasu Chakkera wrote:

can you show us your xsl?


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--