<input type="button" value="play">
<xsl:attribute name="onclick">window.location=<xsl:value-of select="url"/>
</xsl:attribute>
</input>
<xsl:attribute name="onclick">window.location=<xsl:value-of select="url"/>
</xsl:attribute>
</input>
解决方案 »
- C#获取网页验证码图片
- 很急,谢谢 'a' 附近有语法错误。
- socket 编程中序列化和反序列化的作用 和例子 请举例说明!
- 怎么把picturebox1存入数据库?
- 本人初学socket编程,想请教一下如何定义自己的数据包(分不多,但一定结帖)
- 请教关于时间委托的问题
- 在VS.NET2005的C#中把EXCEL2003的数据导入SQL-SERVER2000的问题? (急!!!!!!)
- 水晶报表翻页问题
- c#窗体循环回调如何控制
- 请教高手??
- 【下载】Visual Studio 2005 Enterprise Architect Beta 1 (8CD) 大家快来加速!
- 如何判断文本框textBOX里的文字是否有变化?
1. TestMedia.xml:<?xml-stylesheet type="text/xsl" href="TestMedia.xsl"?>
<media>
<file>
<name>懂你</name>
<url>http://www.greensunshine.com.cn/jtgg/mp3/dongni.mp3</url>
</file>
<file>
<name>Everything I Do</name>
<url>http://www.loverstory.com/music/adams1.MP3</url>
</file>
</media>2. TestMedia.xsl:<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match="media">
<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/
nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE=""/>
<PARAM NAME="animationatStart" VALUE="true"/>
<PARAM NAME="transparentatStart" VALUE="true"/>
<PARAM NAME="autoStart" VALUE="true"/>
<PARAM NAME="showControls" VALUE="true"/>
</OBJECT>
<br /> <xsl:apply-templates />
</xsl:template>
<xsl:template match="file">
<input type="button" value="{name}" onclick="mediaPlayer.FileName='{url}'" /><br/>
</xsl:template></xsl:stylesheet>