以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  高手求救,这个svg图的源码是这样的,怎么就是不显示??  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=39298)


--  作者:magic_j
--  发布时间:10/25/2006 10:25:00 AM

--  高手求救,这个svg图的源码是这样的,怎么就是不显示??
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns:xlink="http://www.w3.org/1999/xlink"><defs>
 <g id="start_def">
  <image x="0" y="0" width="40" height="40" xlink:href="../studio/image//start.gif"/>
 </g>
 <g id="done_def">
  <image x="0" y="0" width="40" height="40" xlink:href="../studio/image//done.gif"/>
 </g>
 <g id="decision_def">
  <polyline points="0,25 22,0 44,25 22,50 0,25" style="fill:#FFE983"/>
 </g>
 <g id="task_auto_def">
  <rect style="fill:#F4FFE0;" x="0" y="0" width="40" height="40" stroke="purple">
    <set attributeName="fill" from="#63FBFC" to="purple" begin="click" end="mouseout"/>
  </rect>
 </g>
 <g id="task_man_def">
  <rect style="fill:#63FBFC;" x="0" y="0" width="40" height="40" stroke="purple">
    <set attributeName="fill" from="#63FBFC" to="purple" begin="click" end="mouseout"/>
  </rect>
 </g>
 <g id="task_arrive_def">
  <rect style="fill:#98FFCD;" x="0" y="0" width="40" height="40" stroke="purple">
    <set attributeName="fill" from="#63FBFC" to="purple" begin="click" end="mouseout"/>
  </rect>
 </g>
 <g id="task_done_def">
  <rect style="fill:darkgray;" x="0" y="0" width="40" height="40" stroke="purple">
    <set attributeName="fill" from="#63FBFC" to="purple" begin="click" end="mouseout"/>
  </rect>
 </g>
 <g id="task_ignore_def">
  <rect style="fill:black;" x="0" y="0" width="40" height="40" stroke="purple">
    <set attributeName="fill" from="#63FBFC" to="purple" begin="click" end="mouseout"/>
  </rect>
 </g>
 <g id="task_not_arrive_def">
  <rect style="fill:white;" x="0" y="0" width="40" height="40" stroke="purple">
    <set attributeName="fill" from="#63FBFC" to="purple" begin="click" end="mouseout"/>
  </rect>
 </g>

 <g id="fork_def">
  <rect style="fill:darkgray;" x="0" y="0" width="20" height="40" stroke="darkgray">
  </rect>
 </g>
 <g id="join_def">
  <rect style="fill:darkgray;" x="0" y="0" width="30" height="40">
  </rect>
    <ellipse cx="20" cy="20" rx="20" ry="20" style="fill:darkgray"/>
   </g>
 <g id="sub_process_def">
  <circle cx="20" cy="20" r="20" style="fill:#225AD9"/>
 </g>
</defs>
<script><![CDATA[
 function disableMouseRight(){]]><![CDATA[
   contextMenu.removeChild(contextMenu.firstChild);]]><![CDATA[
 }]]><![CDATA[
 function clickTaskNode(evt){]]><![CDATA[
   if(get_target(evt).getAttribute('work_assign_id')!=null &&]]><![CDATA[
   get_target(evt).getAttribute('work_assign_id')!=''){]]><![CDATA[
   var work_assign_id = get_target(evt).getAttribute('work_assign_id');]]><![CDATA[
   showModalDialog("monitor/svgNodeQuery.jsp?work_assign_id="+work_assign_id,"","dialogWidth:500px;dialogHeight:200px;status:no;help:no");]]><![CDATA[
   }]]><![CDATA[
 }]]><![CDATA[
 function get_target(evt)]]><![CDATA[
 {]]><![CDATA[
     var target = evt.getTarget();]]><![CDATA[
     while (target && !target.getAttribute('id')){]]><![CDATA[
     target = target.getParentNode();]]><![CDATA[
   }]]><![CDATA[
     return target;]]><![CDATA[
 }]]><![CDATA[
]]></script>
<g id="content">
<g id="backgroud"><rect style="fill:beige;" x="0" y="0" width="2000" height="4000" stroke="beige"></rect></g>
<g id="start0" type="start" height="40" width="40" transform="translate(147 40)" drag="true" clone="false" isDelete="true" style="opacity:1.0;">
   <use xlink:href="#start_def"/>
 </g><g id="done1" type="done" height="40" width="40" transform="translate(145 573)" drag="true" clone="false" isDelete="true" style="opacity:1.0;">
   <use xlink:href="#done_def"/>
 </g><g id="decision2" type="decision" height="50" width="44" transform="translate(147 130)" drag="true" clone="false" isDelete="true" style="opacity:1.0;">
          <!--显示判断节点名称的-->
          <text style="text-anchor:middle" font-size="14" x="20" y="-5" width="30" height="30" startOffset="0">是否对周边客户有发展收入计划?</text>
   <use xlink:href="#decision_def"/>
 </g><g id="task_man3" type="task_man" height="40" width="40" transform="translate(365 220)" drag="true" clone="false" isDelete="true" style="opacity:1.0;" work_assign_id="22013">
          <!--显示人工任务名称的-->
          <text style="text-anchor:middle" font-size="14" x="20" y="-5" width="30" height="30" startOffset="0">创建《周边客户发展收入计划》</text>
   <use xlink:href="#task_done_def"/>
 </g><g id="task_man4" type="task_man" height="40" width="40" transform="translate(147 220)" drag="true" clone="false" isDelete="true" style="opacity:1.0;" work_assign_id="22040">
          <!--显示人工任务名称的-->
          <text style="text-anchor:middle" font-size="14" x="20" y="-5" width="30" height="30" startOffset="0">创建《资源核查单》</text>
   <use xlink:href="#task_done_def"/>
 </g><g id="task_man5" type="task_man" height="40" width="40" transform="translate(147 302)" drag="true" clone="false" isDelete="true" style="opacity:1.0;" work_assign_id="22041">
          <!--显示人工任务名称的-->
          <text style="text-anchor:middle" font-size="14" x="20" y="-5" width="30" height="30" startOffset="0">审核《资源核查单》</text>
   <use xlink:href="#task_done_def"/>
 </g><g id="decision6" type="decision" height="50" width="44" transform="translate(144 365)" drag="true" clone="false" isDelete="true" style="opacity:1.0;">
          <!--显示判断节点名称的-->
          <text style="text-anchor:middle" font-size="14" x="20" y="-5" width="30" height="30" startOffset="0">是否审核通过</text>
   <use xlink:href="#decision_def"/>
 </g><g id="task_man7" type="task_man" height="40" width="40" transform="translate(146 450)" drag="true" clone="false" isDelete="true" style="opacity:1.0;" work_assign_id="22042">
          <!--显示人工任务名称的-->
          <text style="text-anchor:middle" font-size="14" x="20" y="-5" width="30" height="30" startOffset="0">核查资源并回复</text>
   <use xlink:href="#task_arrive_def"/>
 </g><g id="task_man9" type="task_man" height="40" width="40" transform="translate(145 513)" drag="true" clone="false" isDelete="true" style="opacity:1.0;">
          <!--显示人工任务名称的-->
          <text style="text-anchor:middle" font-size="14" x="20" y="-5" width="30" height="30" startOffset="0">资源建设周期是否满足客户需求</text>
   <use xlink:href="#task_not_arrive_def"/>
 </g><line id="line250" type="line" x1="166" y1="365" x2="386" y2="357" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line251" type="line" x1="386" y1="357" x2="385" y2="260" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line225_Arraw1" x1="390.1028216236557" y1="269.9479249834904" x2="385" y2="260" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line225_Arraw2" x1="380.10335298740114" y1="270.0510122890188" x2="385" y2="260" style="stroke:darkgray;stroke-width:1" drag="false"/><circle id="lineposition_18" type="lineposition" r="5" style="fill:#16B007" drag="false" isDelete="true" transform="translate(386 357)" cx="0" cy="0"/><text id="lineText225" x="276" y="361" fill="#12455" width="200" text-anchor="start" displayvalue="false" startOffset="0">false</text><line id="line254" type="line" x1="191" y1="155" x2="365" y2="240" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line231_Arraw1" x1="353.82013713779236" y1="240.10327817886565" x2="365" y2="240" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line231_Arraw2" x1="358.2094597395829" y1="231.11807661755327" x2="365" y2="240" style="stroke:darkgray;stroke-width:1" drag="false"/><text id="lineText231" x="278" y="197.5" fill="#12455" width="200" text-anchor="start" displayvalue="false" startOffset="0">false</text><line id="line258_1" type="line" x1="167" y1="80" x2="167" y2="105" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line258_2" type="line" x1="167" y1="105" x2="167" y2="105" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line258_3" type="line" x1="167" y1="105" x2="167" y2="130" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line258_Arraw1" x1="162" y1="120" x2="167" y2="130" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line258_Arraw2" x1="172" y1="120" x2="167" y2="130" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line261_1" type="line" x1="169" y1="180" x2="169" y2="200" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line261_2" type="line" x1="169" y1="200" x2="169" y2="200" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line261_3" type="line" x1="169" y1="200" x2="169" y2="220" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line261_Arraw1" x1="164" y1="210" x2="169" y2="220" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line261_Arraw2" x1="174" y1="210" x2="169" y2="220" style="stroke:darkgray;stroke-width:1" drag="false"/><text id="lineText261" x="169" y="200" fill="#12455" width="200" text-anchor="start" displayvalue="true" startOffset="0">true</text><line id="line262_1" type="line" x1="365" y1="240" x2="276" y2="240" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line262_2" type="line" x1="276" y1="240" x2="276" y2="240" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line262_3" type="line" x1="276" y1="240" x2="187" y2="240" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line262_Arraw1" x1="197" y1="235" x2="187" y2="240" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line262_Arraw2" x1="197" y1="245" x2="187" y2="240" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line264_1" type="line" x1="167" y1="260" x2="167" y2="281" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line264_2" type="line" x1="167" y1="281" x2="167" y2="281" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line264_3" type="line" x1="167" y1="281" x2="167" y2="302" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line264_Arraw1" x1="162" y1="292" x2="167" y2="302" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line264_Arraw2" x1="172" y1="292" x2="167" y2="302" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line266_1" type="line" x1="167" y1="342" x2="167" y2="353.5" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line266_2" type="line" x1="167" y1="353.5" x2="166" y2="353.5" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line266_3" type="line" x1="166" y1="353.5" x2="166" y2="365" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line266_Arraw1" x1="161" y1="355" x2="166" y2="365" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line266_Arraw2" x1="171" y1="355" x2="166" y2="365" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line284_1" type="line" x1="165" y1="553" x2="165" y2="563" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line284_2" type="line" x1="165" y1="563" x2="165" y2="563" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line284_3" type="line" x1="165" y1="563" x2="165" y2="573" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line284_Arraw1" x1="160" y1="563" x2="165" y2="573" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line284_Arraw2" x1="170" y1="563" x2="165" y2="573" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line289_1" type="line" x1="166" y1="415" x2="166" y2="432.5" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line289_2" type="line" x1="166" y1="432.5" x2="166" y2="432.5" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line289_3" type="line" x1="166" y1="432.5" x2="166" y2="450" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line289_Arraw1" x1="161" y1="440" x2="166" y2="450" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line289_Arraw2" x1="171" y1="440" x2="166" y2="450" style="stroke:darkgray;stroke-width:1" drag="false"/><text id="lineText289" x="166" y="432.5" fill="#12455" width="200" text-anchor="start" displayvalue="true" startOffset="0">true</text><line id="line290_1" type="line" x1="166" y1="490" x2="166" y2="501.5" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line290_2" type="line" x1="166" y1="501.5" x2="165" y2="501.5" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line290_3" type="line" x1="165" y1="501.5" x2="165" y2="513" style="stroke:darkgray;stroke-width:1" drag="false" isDelete="true"/><line id="line290_Arraw1" x1="160" y1="503" x2="165" y2="513" style="stroke:darkgray;stroke-width:1" drag="false"/><line id="line290_Arraw2" x1="170" y1="503" x2="165" y2="513" style="stroke:darkgray;stroke-width:1" drag="false"/>
</g></svg>


--  作者:ncepuyuyu
--  发布时间:10/25/2006 12:59:00 PM

--  
1,检查你有没有装svg viewer 插件
2,将文件保存为utf-8编码(用记事本打开,另存为,选择utf-8编码)
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
78.125ms