Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>DotML is an alternative XML-based syntax for the dot language used to drive the GraphViz program. The normal way of using it is to convert the DotML to dot, and then run GraphViz to generate SVG. The way I do it (from Ant) is here:</p> <pre><code> &lt;target name="dot-files" depends="merge-catalog" if="build.spec" unless="spec.exists"&gt; &lt;xslt in="${merged-spec.xml}" out="${dist.dir}/Overview.html" style="style/xslt-diff.xsl" force="yes" classpathref="saxon9.classpath"&gt; &lt;factory name="net.sf.saxon.TransformerFactoryImpl"&gt; &lt;attribute name="http://saxon.sf.net/feature/initialMode" value="make-dot-files"/&gt; &lt;/factory&gt; &lt;param name="baseline" expression="${baseline}"/&gt; &lt;param name="show.diff.markup.string" expression="0"/&gt; &lt;/xslt&gt; &lt;/target&gt; &lt;target name="diagrams" description="Process all the diagrams in the img directory" depends="dot-files"&gt; &lt;foreach target="diagram" param="diagram"&gt; &lt;path&gt; &lt;fileset dir="${dist.dir}/img"&gt; &lt;include name="*.dot"/&gt; &lt;/fileset&gt; &lt;/path&gt; &lt;/foreach&gt; &lt;/target&gt; &lt;target name="diagram"&gt; &lt;echo message="Converting diagram ${diagram}"/&gt; &lt;basename property="name" file="${diagram}" suffix=".dot"/&gt; &lt;echo message=" to ${dist.dir}/img/${name}.svg"/&gt; &lt;!-- Requires "dot" to be on the path. dot is part of GraphViz. Location might be GraphViz2.24/bin/dot--&gt; &lt;exec executable="dot"&gt; &lt;arg line="-o${dist.dir}/img/${name}.raw.svg -Tsvg ${diagram} "/&gt; &lt;/exec&gt; &lt;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"/&gt; &lt;/target&gt; </code></pre> <p>My case is a bit different because I'm starting with a document that contains multiple diagrams in an XML vocabulary that first needs to be transformed to DotML. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload