How to make dotml

How to render dotml in a chart? According to the website here :

Getting graphs from your data is a three-step process. First create or manually enter a file> XHTML (or any other XML) containing DotML elements.

Use http://www.martin-loetzsch.de/DOTML "as the namespace identifier for DotML elements.> If you want to test your DotML elements, use the DotML scheme.

Second, apply the script "generate-svg-graphics.bash" in the input file. It applies a stylesheet> dotml2dot.xsl and generates an SVG diagram and a CSS file containing the size> SVG diagram for each element of the DotML graph. Please see "generate-svg-> graphics.bash" for the necessary environment variables and parameters.

Third, if a DotML graph is embedded in an XHTML document, the XSLT stylesheet "embed-> svg-graphics.xsl" replaces the DotML graphic elements with the inclusion of generated> SVGs. See "Embed-svg-graphics.xsl" for details.

I have already entered the XML code, but I don’t know what the rest of the steps mean. If anyone could explain how to do this at a very simple level that would be fantastic.

+1
1

DotML - XML , GraphViz. - DotML , GraphViz SVG. , ( Ant), :

  <target name="dot-files" depends="merge-catalog" if="build.spec" unless="spec.exists">
    <xslt in="${merged-spec.xml}" out="${dist.dir}/Overview.html" style="style/xslt-diff.xsl" 
      force="yes" classpathref="saxon9.classpath">
      <factory name="net.sf.saxon.TransformerFactoryImpl">
        <attribute name="http://saxon.sf.net/feature/initialMode" value="make-dot-files"/>
      </factory>
      <param name="baseline" expression="${baseline}"/>
      <param name="show.diff.markup.string" expression="0"/>
    </xslt>    
  </target>

  <target name="diagrams" description="Process all the diagrams in the img directory"
    depends="dot-files">
    <foreach target="diagram" param="diagram">
      <path>
        <fileset dir="${dist.dir}/img">
          <include name="*.dot"/>
        </fileset>
      </path>
    </foreach>
  </target>

  <target name="diagram">
    <echo message="Converting diagram ${diagram}"/>
    <basename property="name" file="${diagram}" suffix=".dot"/>
    <echo message="  to ${dist.dir}/img/${name}.svg"/>
    <!-- Requires "dot" to be on the path. dot is part of GraphViz. Location might be GraphViz2.24/bin/dot-->
    <exec executable="dot">
      <arg line="-o${dist.dir}/img/${name}.raw.svg -Tsvg ${diagram} "/>
    </exec>

    <xslt in="${dist.dir}/img/${name}.raw.svg" out="${dist.dir}/img/${name}.svg" style="style/tidy-graphviz-svg.xsl" 
      force="yes" classpathref="saxon9.classpath"/>   
  </target>

, , XML, DotML.

+1

All Articles