[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: include external JS file in SVG document through a
Hi. if you want to include an external js file you should use the 'src' attribute instead of the 'href'. <script src="somejavascript.js"></script> will be inluded but <script href="somejavascript.js"></script> will not. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tamorri Claudio Sent: Tuesday, July 09, 2002 4:13 PM To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: include external JS file in SVG document through an XSLT process Hi , I'm developing a web application in which , basically, there is a servlet that, through the oracle's "sdoapi" package, retrieve geographic data and transform them in xml stored in memory (ByteArrayInputStream). This xml is transformed in svg document through style sheet ie xsl file (using package JAXP).I'm trying to include an external java script file by the xsl file to make more dynamic the svg document, i have try in this manner: <xsl:element name='script'> <xsl:attribute name="xlink:href"> <xsl:text>provaJS.js</xsl:text> </xsl:attribute> </xsl:element> ------------------------------------------- <script xlink:href="provaJS.js"> ------------------------------------------- but in nothing way get what i want. With the previous syntax the application don't return an error but the function called is not retrieve. Can someone help me? Claudio XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|