This commit is contained in:
Andy Bunce 2021-05-19 12:46:16 +01:00
parent 30f15aca89
commit 17fc12fe02
3 changed files with 31861 additions and 10 deletions

View file

@ -8,9 +8,10 @@ declare default function namespace 'apb.graphviz';
import module namespace proc="http://basex.org/modules/proc"; import module namespace proc="http://basex.org/modules/proc";
import module namespace file="http://expath.org/ns/file"; import module namespace file="http://expath.org/ns/file";
import module namespace xslt="http://basex.org/modules/xslt"; import module namespace xslt="http://basex.org/modules/xslt";
import module namespace random="http://basex.org/modules/random";
declare namespace svg= "http://www.w3.org/2000/svg"; declare namespace svg= "http://www.w3.org/2000/svg";
declare namespace xlink="http://www.w3.org/1999/xlink"; declare namespace xlink="http://www.w3.org/1999/xlink";
declare %private variable $gr:dotpath:=if(fn:environment-variable("DOTPATH")) declare %private variable $gr:dotpath:=if(fn:environment-variable("DOTPATH"))
then fn:environment-variable("DOTPATH") then fn:environment-variable("DOTPATH")

View file

@ -2,10 +2,11 @@
<!-- <!--
tidy up graphviz svg o/p tidy up graphviz svg o/p
--> -->
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/2000/svg" <xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:param name="filter">MyFilter</xsl:param> <xsl:param name="filter">MyFilter</xsl:param>
<xsl:param name="rotate" select="false()"/> <xsl:param name="rotate" select="false()"/>
<xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/> <xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
@ -81,11 +82,10 @@ xmlns:xlink="http://www.w3.org/1999/xlink" >
</filter> </filter>
</defs> </defs>
</xsl:variable> </xsl:variable>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" aa="{$aa}" <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" aa="{$aa}" preserveAspectRatio="xMidYMid meet" viewBox="0 0 {$w} {$h}" text-rendering="optimizeLegibility">
preserveAspectRatio="xMidYMid meet" viewBox="0 0 {$w} {$h}" text-rendering="optimizeLegibility">
<xsl:copy-of select="$filters"/> <xsl:copy-of select="$filters"/>
<xsl:choose> <xsl:choose>
<xsl:when test="rotate"> <xsl:when test="rotate">
<g transform="rotate(90 {$w div 2} {$h div 2} )"> <g transform="rotate(90 {$w div 2} {$h div 2} )">
@ -93,7 +93,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink" >
</g> </g>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:apply-templates select="*"/> <xsl:apply-templates select="*"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</svg> </svg>

31850
xml/full_mets.xml Normal file

File diff suppressed because it is too large Load diff