Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling external .js file from xsl via value in xml node

Status
Not open for further replies.

birney29

Programmer
Oct 11, 2001
140
GB
im using an external javascript file in my xsl file eg :
Code:
<script src=&quot;dropDown1.js&quot;></script>
however, what i wnat tot do is, the name of the file will be held in an XML document. so is it possible to do something like:
Code:
<script src=&quot;<xsl:value-of select=&quot;fielname&quot;/> > </script>
is this possible?

thanks Kenneth Birney
User Interface Programmer
Scottish Police
 
did you try this:
<script language=&quot;Javascript&quot;>
<xsl:attribute name=&quot;src&quot;><xsl:value-of select=&quot;filename&quot;/></xsl:attribute>
</script>
 
good idea! i shoulda thought of that! Kenneth Birney
User Interface Programmer
Scottish Police
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top