This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: include external JS file in SVG document through an XSLT process


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@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Tamorri
Claudio
Sent: Tuesday, July 09, 2002 4:13 PM
To: XSL-List@lists.mulberrytech.com
Subject: [xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]