以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XML源码及示例(仅原创和转载) 』  (http://bbs.xml.org.cn/list.asp?boardid=32)
----  [求助]xsl文件里面可以插入vml代码吗  (http://bbs.xml.org.cn/dispbbs.asp?boardid=32&rootid=&id=8138)


--  作者:pernament
--  发布时间:6/6/2004 3:23:00 PM

--  [求助]xsl文件里面可以插入vml代码吗
我插了一段,点击相应的xml文件,却显示一片空白:(
请各位大牛帮我看看
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" x
mlns:v="urn:schemas-microsoft-com:vml">


<xsl:template match="/">
        <html><head><title>线 </title></head>
        <style>
        v\:* { BEHAVIOR: url(#default#VML) }
        </style>
        <body><xsl:apply-templates select="temperature_info"/></body>
        </html>
</xsl:template>
<xsl:template match="temperature_info">

<v:line from="0,0" to="100,50" style="position:relative;"/>
</xsl:template>

</xsl:stylesheet>


--  作者:孤独
--  发布时间:6/6/2004 9:04:00 PM

--  
<html xmlns:v="urn:schemas-microsoft-com:vml">
根模板加这个
--  作者:pernament
--  发布时间:6/7/2004 9:18:00 AM

--  
可是我已经在开头加了这个呀?
是改成这样吗?
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:v="urn:schemas-microsoft-com:vml">

<xsl:template match="/">
        <html xmlns:v="urn:schemas-microsoft-com:vml"><head><title>line </title></head>
        <style>
        v\:* { BEHAVIOR: url(#default#VML) }
        </style>
        <body><xsl:apply-templates select="temperature_info"/></body>
        </html>
</xsl:template>
<xsl:template match="temperature_info">

<v:line from="0,0" to="100,50" style="position:relative;"/>

</xsl:template>

</xsl:stylesheet>

还是一片空白,我都怀疑IE会不会画图了


--  作者:流鼻涕
--  发布时间:6/7/2004 6:26:00 PM

--  
<xsl:element name="v:roundrect" >
  <xsl:attribute name="style">width:100%;height:33pt</xsl:attribute>
  <xsl:attribute name="fillcolor">#ecac04</xsl:attribute>
  
  <xsl:element name="v:shadow">
   <xsl:attribute name="on">t</xsl:attribute>
   <xsl:attribute name="type">single</xsl:attribute>
   <xsl:attribute name="color">silver</xsl:attribute>
   <xsl:attribute name="offset">5pt,5pt</xsl:attribute>
  </xsl:element>

  <xsl:element name="v:fill">
   <xsl:attribute name="color2">#F4DC8C</xsl:attribute>
   <xsl:attribute name="type">gradient</xsl:attribute>
  </xsl:element>
  <xsl:element name="v:textbox">
  <xsl:attribute name="style">text-align : center;</xsl:attribute>
  <SPAN style="font-size: 20pt" align="left"><b><xsl:value-of select="Name" /> </b></SPAN>
 </xsl:element>
</xsl:element> 


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms