update
This commit is contained in:
parent
30f15aca89
commit
17fc12fe02
@ -8,9 +8,10 @@ declare default function namespace 'apb.graphviz';
|
||||
import module namespace proc="http://basex.org/modules/proc";
|
||||
import module namespace file="http://expath.org/ns/file";
|
||||
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 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"))
|
||||
then fn:environment-variable("DOTPATH")
|
||||
|
@ -2,10 +2,11 @@
|
||||
<!--
|
||||
tidy up graphviz svg o/p
|
||||
-->
|
||||
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" >
|
||||
<xsl:stylesheet version="3.0"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
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="rotate" select="false()"/>
|
||||
<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>
|
||||
</defs>
|
||||
</xsl:variable>
|
||||
<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">
|
||||
|
||||
<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">
|
||||
|
||||
<xsl:copy-of select="$filters"/>
|
||||
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="rotate">
|
||||
<g transform="rotate(90 {$w div 2} {$h div 2} )">
|
||||
@ -93,7 +93,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink" >
|
||||
</g>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="*"/>
|
||||
<xsl:apply-templates select="*"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</svg>
|
||||
|
31850
xml/full_mets.xml
Normal file
31850
xml/full_mets.xml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user