728x90
728x90
xsl 파일에 자바스크립트 첨부하기
- template 안에 script 파일 링크를 둔다.
solution 1
<xsl:template match="/">
<script src="/.../test.js"></script>
</xsl:template>
solution 2
기본 xslt 파일
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:include href="include.xsl"/>
<xsl:template match="/">
<xsl:call-template name="headers"/>
<bar>
<xsl:value-of select="root"/>
</bar>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template name="headers">
<script src="/fs/scripts/shipment/shipment.js"></script>
</xsl:template>
</xsl:stylesheet>
how to include script tag in an xsl file?
how to include script tag in an xsl file?
I'm working on an old site that uses java and xsl. How can I inculde a script file in an xsl file? Top of the file: stackoverflow.com
728x90
728x90