This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
expression/vhosts/dbxmltest/xquerysvg.xml

31 lines
776 B
XML

<?xml version="1.0"?>
<yep:xquery xmlns:yep="http://www.entrouvert.org/namespaces/expression/0.0">
<svg width="512pt" height="512pt" xmlns="http://www.w3.org/2000/svg">
{
for $t at $c in collection("test.dbxml")/*/*/text()
return <text
xml:space="preserve"
style="font-size:64;
font-style:normal;
font-variant:normal;
font-weight:bold;
font-stretch:normal;
fill:#f7b4bb;
fill-opacity:1;
fill-rule:nonzero;
stroke:#000000;
stroke-width:0.3;
stroke-linecap:round;
stroke-linejoin:round;
stroke-miterlimit:4;
stroke-opacity:1;
font-family:Bitstream Vera Sans;
text-anchor:left;
writing-mode:lr;"
x="0"
y="{64 * $c}"
>{$t}</text>
}
</svg>
</yep:xquery>