用户登录
用户注册

分享至

svg

  • 作者: 闲愁看客
  • 来源: 51数据库
  • 2020-10-03
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:svg="http://www.w3.org/2000/svg">
<xsl:template match="/">
<html>
<object id="AdobeSVG" CLASSID="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
<xsl:processing-instruction name = "import" > namespace="svg" implementation="#AdobeSVG"</xsl:processing-instruction>
<br/>
<xsl:value-of select="//rw[1]/h/fv"/>(Yellow): <xsl:value-of select="//rw[1]/mv"/>%<br/>
<xsl:value-of select="//rw[2]/h/fv"/>(Red): <xsl:value-of select="//rw[2]/mv"/>%<br/>
<xsl:value-of select="//rw[3]/h/fv"/>(Orange): <xsl:value-of select="//rw[3]/mv"/>%<br/>
<svg:svg width="220" height="150">
<svg:defs>
<svg:radialGradient id="Sshd4" fx="50%" fy="99%" x="95%" y="50%" gradientUnits="objectBoundingBox">
<svg:stop id="stop1" offset="0%" style="stop-color:rgb( 0, 0,255);stop-opacity: 1.00;"/>
<svg:stop id="stop2" offset="100%" style="stop-color:rgb( 0, 0, 0);stop-opacity: 1.00;"/>
</svg:radialGradient>
</svg:defs>
<svg:g id="Oobj21" style="fill:url(#Sshd4);fill-rule:evenodd;" transform="matrix(2.00,0.00,0.00,1.35,100.00,68.00)">
<svg:path id="Ggeo16" style="stroke:rgb( 0, 0, 0);stroke-width:1;" d="M -50,50 C -50,-50 50,-50 50,50 z"/>
</svg:g>
<svg:g>
<svg:rect x="100" y="134" width="1" height="100" fill="yellow">
<xsl:attribute name="transform">rotate(<xsl:value-of select="(9 div 5 *//rw[1]/mv) + 90"/>,100,134)</xsl:attribute>
</svg:rect>
<svg:rect x="100" y="134" width="1" height="100" fill="red">
<xsl:attribute name="transform">rotate(<xsl:value-of select="(9 div 5 *//rw[2]/mv) + 90"/>,100,134)</xsl:attribute>
</svg:rect>
<svg:rect x="100" y="134" width="1" height="100" fill="orange">
<xsl:attribute name="transform">rotate(<xsl:value-of select="(9 div 5 *//rw[3]/mv) + 90"/>,100,134)</xsl:attribute>
</svg:rect>
</svg:g>
</svg:svg>
</html>
</xsl:template>
</xsl:stylesheet>



  我。。知。。道
加。。我。。私。。聊
软件
前端设计
程序设计
Java相关