Re: SVG 1.2 and SVG 2.0 - Use Cases Document

I second this.
I think that some documentation high-level enough
for low-education pointed-hairy boss (PHB) would be
a VERY good thing to sell SVG as a viable programming tool
as an applicable industry standard.

Also while you may use any tool to generate Use Case,
such as Rational Rose, take screen shots and save them as PNG,
you might also want to use SVG to represent them! =P

A simple perl script and an XML parser
with few parameters can easily generate
and calculate such diagrams.

If you edit manually, you might find EASILY
why the shortcommings with producing SVG diagrams
for UML and documentation purposes !

Especially, the layout area and connectivity between elements.

>Aac> I would like to suggest that the WG consider Aac> producing an 
>explicit, Aac> free-standing Use Cases document for SVG 1.2 and SVG 2.0.

>This is a valuable and well articulated suggestion. Thank you. It will
>be brought to the attention of the SVG WG.

Here's a working template:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
      "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">

<svg width="500" height="500"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:svgmaker="http://www.svgmaker.com/svgns">

  <style type="text/css">
    <![CDATA[
       text                {  font-family:     Arial;
                              font-size:       12;
                              text-rendering:  optimizeSpeed;
                              shape-rendering: optimizeSpeed;
                           }

       .title              {  font-family:     Arial;
                              font-size:       18;
                              font-style:      bold;
                              text-rendering:  optimizeSpeed;
                              shape-rendering: optimizeSpeed;
                           }

      .UML-box-lined        { fill:           #FFFFCC;
                              stroke:         #990033;
                              stroke-width:   1;
                              fill-opacity:   1;
                              opacity:        1;
                              stroke-opacity: 1;
                              stroke-linejoin: mitter;
                              shape-rendering: optimizeSpeed;
                            }

      .UML-box-blank        { fill:           #FFFFCC;
                              stroke:         #FFFFCC;
                              stroke-width:   0;
                              fill-opacity:   1;
                              opacity:        1;
                              stroke-opacity: 1;
                              stroke-linejoin: mitter;
                              shape-rendering: optimizeSpeed;
                            }
    ]]>
  </style>
  <defs>
    <g id='use-case-small-box'>
      <ellipse
          class='#UML-box-lined'
          rx="55"  ry="25"
          stroke="#990033"
          fill="#FFFFCC"  />
    </g>
    <g id='use-case-user'  transform='translate(.5,.5)'>

      <circle r="11"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none" />

      <line x1="0" y1="11" x2="0" y2="45"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none" />

      <line x1="0" y1="34" x2="-15" y2="20"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none" />

      <line x1="0" y1="34" x2="+15" y2="20"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none" />

      <line x1="0" y1="45" x2="-15" y2="64"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none" />

      <line x1="0" y1="45" x2="+15" y2="64"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none" />

    </g>
  </defs>

<!-- Display Use case elements -->
<use xlink:href='#use-case-user'      x="100" y="100"/>
<use xlink:href='#use-case-small-box' x="250" y="100"/>
<use xlink:href='#use-case-small-box' x="250" y="200"/>

<!-- Draw Use case association lines -->
      <line x1="120" y1="130" x2="190" y2="100"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none"
          transform='translate(.5,.5)' />

      <line x1="120" y1="130" x2="190" y2="200"
          style='shape-rendering: optimizeSpeed;'
          stroke="#990033" fill="none"
          transform='translate(.5,.5)' />

<!-- Draw Text -->
<text class='title' x="90" y="40">SVG Mouse Event - Use Case Diagram</text>

<text x="65"  y="185">SVG Viewer</text>
<text x="211" y="103">OnMouseOut</text>
<text x="211" y="203">OnMouseOver</text>

<!-- Module outliner -->
<rect x="10" y="10" width="480" height="480"
style="fill:none;stroke:#808080;shape-rendering: optimizeSpeed;"
>

</svg>


Sincerely yours,

Fred.



_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

Received on Thursday, 1 May 2003 04:53:35 UTC