thumbnail updates

This commit is contained in:
Andy Bunce 2013-02-03 21:09:14 +00:00
parent 00a74c869b
commit 47ae7ff0b7
16 changed files with 19 additions and 194 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -26,7 +26,7 @@ declare
%restxq:GET %restxq:path("graphxq")
%output:method("html") %output:version("5.0")
function home(){
<restxq:redirect>graphxq/about</restxq:redirect>
<restxq:redirect>/restxq/graphxq/about</restxq:redirect>
};
(:~
@ -120,13 +120,13 @@ function ace(){
};
declare
declare
%restxq:GET %restxq:path("graphxq/library")
%output:method("html") %output:version("5.0")
function library(){
let $lib:=fn:doc("data/library.xml")
let $map:=map{"title":="Samples",
"items":=$lib//items,
let $lib:=fn:doc("data/library.xml")
let $map:=map{"title":="Samples",
"items":=$lib//items,
"url":=function($item){fn:concat($item/url/@type,'?src=data/samples/',$item/url)}
}
return render("views/library.xml",$map)

View file

@ -33,8 +33,6 @@ declare function render($template as xs:string,$map as map(*),$layout as xs:stri
return render($layout,$map)
};
(:~
: partial template function: evaluate part for each value in sequence
: @return updated doc from map

View file

@ -1,174 +0,0 @@
<?xml version="1.0"?>
<Document xmlns="http://www.evolus.vn/Namespace/Pencil"><Properties/><Pages><Page><Properties><Property name="name">Untitled Page</Property><Property name="id">1358783953667_81</Property><Property name="width">581</Property><Property name="height">439</Property><Property name="dimBackground"/><Property name="transparentBackground"/><Property name="backgroundColor">#ffffff</Property></Properties><Content><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.BasicWebElements:pane" id="d827d7bf0d8c41b78ca7d3407bdadc73" transform="matrix(1,0,0,1,57,37)"><p:metadata><p:property name="radius"><![CDATA[15.600000000000001,0]]></p:property><p:property name="textPadding"><![CDATA[0,12.166666666666668]]></p:property><p:property name="fillColor"><![CDATA[#EEEEEEFF]]></p:property><p:property name="shadowStyle"><![CDATA[0|0|3]]></p:property><p:property name="shadowColor"><![CDATA[#00000000]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[0|]]></p:property><p:property name="textContent"><![CDATA[]]></p:property><p:property name="textFont"><![CDATA["Liberation Sans",Arial,sans-serif|normal|normal|13px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="box"><![CDATA[312,365]]></p:property><p:property name="cornerStyle"><![CDATA[none]]></p:property><p:property name="customStyle"><![CDATA[]]></p:property></p:metadata>
<foreignObject x="-3" y="-3" width="318" height="371" p:name="htmlObject" id="f7135618af854ad48370d0c75b27459e" style="font-family: &quot;Liberation Sans&quot;,Arial,sans-serif; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1; color: rgb(0, 0, 0); opacity: 1;">
<div xmlns="http://www.w3.org/1999/xhtml" style="-moz-box-sizing: border-box; overflow: hidden; box-shadow: none; width: 312px; height: 365px; padding: 12.1667px; background-color: rgb(238, 238, 238); border-radius: 0px 0px 0px 0px; border: medium none; margin-left: 3px; margin-top: 3px;" p:name="div" id="5a969e08e8e44e51842655416e16d476"><div xmlns="http://www.w3.org/1999/xhtml"></div></div>
</foreignObject>
</g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.Common:SVGImage" id="27906cb8f8204daeadb03f89f921d63b" transform="matrix(1,0,0,1,311,24)"><p:metadata><p:property name="box"><![CDATA[123,58]]></p:property><p:property name="originalDim"><![CDATA[400,400]]></p:property><p:property name="svgXML"><![CDATA[<g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
<defs id="69ce74ed8fa440e881533ba6d488c441">
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
</filter>
</defs>
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
<cc:Agent>
<dc:title>Nicu Buculei</dc:title>
</cc:Agent>
</dc:rights>
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
</cc:Work>
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
</cc:License>
</rdf:RDF>
</metadata>
</g>]]></p:property></p:metadata>
<g p:name="container" id="26796a97e65d4ea3a0cd1fabd295f354" transform="scale(0.3075,0.145)"><g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
<defs id="69ce74ed8fa440e881533ba6d488c441">
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
</filter>
</defs>
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
<cc:Agent>
<dc:title>Nicu Buculei</dc:title>
</cc:Agent>
</dc:rights>
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
</cc:Work>
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
</cc:License>
</rdf:RDF>
</metadata>
</g></g>
</g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.Sketchy.GUI:combobox" id="f4c493959a0849b982ddca089ef3b622" transform="matrix(1,0,0,1,66,45)"><p:metadata><p:property name="box"><![CDATA[100,25]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="fillColor"><![CDATA[#CCCCCCFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[Menu1]]></p:property><p:property name="textFont"><![CDATA[Comic Sans MS|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property></p:metadata>
<g p:name="rect" id="16fc4dd0c3504df69cdc07d2e371104b" style="fill: rgb(204, 204, 204); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
<path style="stroke-linejoin: round;" p:name="line1" id="b65b71de22c545688c915c56d497c47f" d="M 0 0 C 25 0 50 0 75 0 C 75 8 75 17 75 25 C 50 25 25 25 0 25 C 0 17 0 8 0 0 z"/>
</g>
<g p:name="fillrect" id="385554d06f7440389fe84789f61dde17" style="fill: rgb(163, 163, 163); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
<path style="stroke-linejoin: round;" p:name="line2" id="fda55a5b34b84f489e13ae85edd7ec4f" d="M 75 0 C 83 0 92 0 100 0 C 100 8 100 17 100 25 C 92 25 83 25 75 25 C 75 17 75 8 75 0 z"/>
</g>
<path d="M 83.15 10 C 86 10 89 10 91.85 10 C 90 12 89 15 87.5 17.5 C 86 15 85 13 83.15 10 z" style="fill:black;stroke-linejoin: round;" p:name="triangle" id="ff11ed5a762b44a79359a672b1f24054"/>
<text p:name="text" id="3eabd78a2ee84fcb90552399af89291e" style="font-family: Comic Sans MS; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(7,17)">Menu1</text>
</g><g xmlns="http://www.w3.org/2000/svg" p:type="Group" xmlns:p="http://www.evolus.vn/Namespace/Pencil" transform="matrix(1,0,0,1,148,96)" id="8c0ca2ff46064c448164cba2ec537c39" p:sizing-gow="257" p:sizing-goh="266"><g p:type="Shape" p:def="Evolus.BasicWebElements:pane" id="cfe7bf8f6ef34acfa36a7b520991305e" transform="matrix(1,0,0,1,3,3)" p:sizing-ox="0" p:sizing-oy="0" p:sizing-ow="251" p:sizing-oh="260"><p:metadata><p:property name="radius"><![CDATA[12.55,0]]></p:property><p:property name="textPadding"><![CDATA[0,8.666666666666668]]></p:property><p:property name="fillColor"><![CDATA[#EEEEEEFF]]></p:property><p:property name="shadowStyle"><![CDATA[0|0|3]]></p:property><p:property name="shadowColor"><![CDATA[#00000000]]></p:property><p:property name="strokeColor"><![CDATA[#003300FF]]></p:property><p:property name="strokeStyle"><![CDATA[2|1,3]]></p:property><p:property name="textContent"><![CDATA[]]></p:property><p:property name="textFont"><![CDATA[Arial|normal|normal|13px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="box"><![CDATA[251,260]]></p:property><p:property name="cornerStyle"><![CDATA[none]]></p:property><p:property name="customStyle"><![CDATA[]]></p:property></p:metadata>
<foreignObject x="-3" y="-3" width="257" height="266" p:name="htmlObject" id="c7a0ed73373645b48e359f82c8e97ce5" style="font-family: Arial; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1; color: rgb(0, 0, 0); opacity: 1;">
<div xmlns="http://www.w3.org/1999/xhtml" style="-moz-box-sizing: border-box; overflow: hidden; box-shadow: none; width: 251px; height: 260px; padding: 8.66667px; background-color: rgb(238, 238, 238); border-radius: 0px 0px 0px 0px; border: 2px solid rgb(0, 51, 0); margin-left: 3px; margin-top: 3px;" p:name="div" id="ed2969745dfa45dfa26f0ac73c7f5723"><div xmlns="http://www.w3.org/1999/xhtml"></div></div>
</foreignObject>
</g><g p:type="Shape" p:def="Evolus.BasicWebElements:breadCrumb" id="03c8a1957b8a4ced866094eac1c4ce54" transform="matrix(1,0,0,1,11,10)" p:sizing-ox="11" p:sizing-oy="10" p:sizing-ow="152" p:sizing-oh="16"><p:metadata><p:property name="textContent"><![CDATA[Home > Products > Pencil]]></p:property><p:property name="textColor"><![CDATA[#0000FFFF]]></p:property><p:property name="textFont"><![CDATA["Liberation Sans",Arial,sans-serif|normal|normal|13px|none]]></p:property><p:property name="customStyle"><![CDATA[]]></p:property><p:property name="homeColor"><![CDATA[#0000FFFF]]></p:property><p:property name="homeCustomStyle"><![CDATA[]]></p:property><p:property name="sepColor"><![CDATA[#00000080]]></p:property><p:property name="spaceSize"><![CDATA[0.5]]></p:property><p:property name="sepCustomStyle"><![CDATA[]]></p:property><p:property name="endColor"><![CDATA[#000000FF]]></p:property><p:property name="endCustomStyle"><![CDATA[]]></p:property></p:metadata>
<foreignObject x="0" y="0" width="152" height="16" p:name="htmlObject" id="6abfcb75f0944d33904bb0f1a1e384c2">
<div xmlns="http://www.w3.org/1999/xhtml" p:name="textDiv" id="bb33123c5c034a79b0995534215a2b52" style="display: inline-block; white-space: nowrap; color: rgb(0, 0, 255); opacity: 1; font-family: &quot;Liberation Sans&quot;,Arial,sans-serif; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none;"><div xmlns="http://www.w3.org/1999/xhtml"><span style="color: rgba(0, 0, 255, 1); text-decoration: none;;">Home</span><span style="color: rgba(0, 0, 0, 0.5); margin: 0px 0.5ex; ">&gt;</span><span style="text-decoration: none;;">Products</span><span style="color: rgba(0, 0, 0, 0.5); margin: 0px 0.5ex; ">&gt;</span><span style="color: rgba(0, 0, 0, 1); ;">Pencil</span></div></div>
</foreignObject>
</g><g p:type="Shape" p:def="Evolus.Sketchy.GUI:button" id="dd297b768e644e208a345f0dff9938cb" transform="matrix(1,0,0,1,70,209)" p:sizing-ox="70" p:sizing-oy="209" p:sizing-ow="90" p:sizing-oh="25"><p:metadata><p:property name="box"><![CDATA[90,25]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="default"><![CDATA[false]]></p:property><p:property name="fillColor"><![CDATA[#CCCCCCFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[Save]]></p:property><p:property name="textFont"><![CDATA[Comic Sans MS|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property></p:metadata>
<g p:name="rect" id="50713dea1d354cdeb79fa325e94b4a97" style="fill: rgb(204, 204, 204); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
<path style="stroke-linejoin: round;" p:name="line1" id="2cc3d1b84b42480daa1cd0f2fa284ee8" d="M 0 0 C 30 0 60 0 90 0 C 90 8 90 17 90 25 C 60 26 30 26 0 25 C 0 17 0 8 0 0 z"/>
</g>
<text p:name="text" id="9f8603911538417e9ad4d16a920b1609" style="font-family: Comic Sans MS; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(32,17)">Save</text>
</g><g p:type="Shape" p:def="Evolus.Sketchy.GUI:box" id="859fdba6dfa842748af58e0e2b260592" transform="matrix(1,0,0,1,33,70)" p:sizing-ox="33.5" p:sizing-oy="70.5" p:sizing-ow="200" p:sizing-oh="83"><p:metadata><p:property name="box"><![CDATA[200,83]]></p:property><p:property name="textPadding"><![CDATA[10,5.533333333333333]]></p:property><p:property name="fillColor"><![CDATA[#FFFFFFFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[]]></p:property><p:property name="textFont"><![CDATA['Comic Sans MS'|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property></p:metadata>
<path style="stroke-linejoin: round; fill: rgb(255, 255, 255); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;" p:name="line1" id="6752e071a1324b0db5008d10c60ec643" transform="translate(0.5,0.5)" d="M 0 0 C 67 1 133 1 200 0 C 199 28 199 55 200 83 C 133 82 67 82 0 83 C 0 55 0 28 0 0 z"/>
<text p:name="text" id="c80c39a45ebc4e2396c60af1c84b5732" style="font-family: 'Comic Sans MS'; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(100,42)"/>
</g><g p:type="Shape" p:def="Evolus.Sketchy.GUI:combobox" id="de01cde5fe054bb1b690d5a217eb000a" transform="matrix(1,0,0,1,93,169)" p:sizing-ox="93" p:sizing-oy="169" p:sizing-ow="132" p:sizing-oh="26"><p:metadata><p:property name="box"><![CDATA[132,26]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="fillColor"><![CDATA[#FFFFFFFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[some list]]></p:property><p:property name="textFont"><![CDATA[Comic Sans MS|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property></p:metadata>
<g p:name="rect" id="3fc0dda2563f4cd69f47786a2f482cae" style="fill: rgb(255, 255, 255); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
<path style="stroke-linejoin: round;" p:name="line1" id="ddfc0caa5791484d9038e020ce195579" d="M 0 0 C 35 0 71 0 106 0 C 106 9 106 17 106 26 C 71 25 35 25 0 26 C 0 17 0 9 0 0 z"/>
</g>
<g p:name="fillrect" id="988680800d934319bf16675f4c48e8ad" style="fill: rgb(204, 204, 204); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
<path style="stroke-linejoin: round;" p:name="line2" id="46fad27fb585444db75efc4708e35e46" d="M 106 0 C 115 0 123 0 132 0 C 132 9 132 17 132 26 C 123 26 115 26 106 26 C 106 17 106 9 106 0 z"/>
</g>
<path d="M 114.476 10.4 C 117 10 121 10 123.524 10.4 C 122 13 121 16 119 18.2 C 117 16 116 13 114.476 10.4 z" style="fill:black;stroke-linejoin: round;" p:name="triangle" id="dc62a27b574246b0bee324ce2f8b1cc4"/>
<text p:name="text" id="ef1e4aa202e14f89b043156192083e2c" style="font-family: Comic Sans MS; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(7,18)">some list</text>
</g><g p:type="Shape" p:def="Evolus.Common:PlainTextV2" p:sc="Label" id="27dfd93da5db4aa1ae26e39c061ee913" transform="matrix(1,0,0,1,37,183)" p:sizing-ox="36" p:sizing-oy="170" p:sizing-ow="32" p:sizing-oh="17"><p:metadata><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="width"><![CDATA[100,0]]></p:property><p:property name="fixedWidth"><![CDATA[false]]></p:property><p:property name="label"><![CDATA[Label]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA['Comic Sans MS'|normal|normal|12px|none]]></p:property><p:property name="textAlign"><![CDATA[0,0]]></p:property></p:metadata>
<rect x="0" y="0" style="fill: none; stroke: none; visibility: hidden; display: none;" p:name="bgRect" id="82ce8ac6428e44d6bfeff94bbb0fc45c" width="0" height="0"/>
<text xml:space="preserve" p:name="text" id="996d4d1553934f1a9cbba085166eff4a" style="fill: rgb(0, 0, 0); fill-opacity: 1; font-family: 'Comic Sans MS'; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none;"><tspan x="0" y="0">Label</tspan></text>
</g><g p:type="Shape" p:def="Evolus.Common:RichTextBoxV2" p:sc="HTML Texts" id="69d2200c45364851a7c11f5c1acf98d8" transform="matrix(1,0,0,1,34,41)" p:sizing-ox="34" p:sizing-oy="41" p:sizing-ow="69" p:sizing-oh="16"><p:metadata><p:property name="width"><![CDATA[200,0]]></p:property><p:property name="fixedWidth"><![CDATA[false]]></p:property><p:property name="textContent"><![CDATA[HTML Texts]]></p:property><p:property name="textFont"><![CDATA["Liberation Sans",Arial,sans-serif|normal|normal|13px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="customStyle"><![CDATA[
]]></p:property></p:metadata>
<foreignObject x="0" y="0" width="69" height="16" p:name="htmlObject" id="f8b306c8c6e54f35a3d3a180348109bc" style="color: rgb(0, 0, 0); opacity: 1; font-family: &quot;Liberation Sans&quot;,Arial,sans-serif; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none;">
<div xmlns="http://www.w3.org/1999/xhtml" p:name="textDiv" id="1176e7d1130a40bc957e95b95abcdfc7" style="display: inline-block; white-space: nowrap; text-decoration: none;"><div xmlns="http://www.w3.org/1999/xhtml">HTML Texts</div></div>
</foreignObject>
</g></g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.Common:SVGImage" id="7668948211e04966b97560296dda45d3" transform="matrix(1,0,0,1,371,144)"><p:metadata><p:property name="box"><![CDATA[123,67]]></p:property><p:property name="originalDim"><![CDATA[400,400]]></p:property><p:property name="svgXML"><![CDATA[<g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
<defs id="69ce74ed8fa440e881533ba6d488c441">
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
</filter>
</defs>
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
<cc:Agent>
<dc:title>Nicu Buculei</dc:title>
</cc:Agent>
</dc:rights>
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
</cc:Work>
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
</cc:License>
</rdf:RDF>
</metadata>
</g>]]></p:property></p:metadata>
<g p:name="container" id="a69ed2e3db3d4e488a0a02cce53a797f" transform="scale(0.3075,0.1675)"><g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
<defs id="69ce74ed8fa440e881533ba6d488c441">
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
</filter>
</defs>
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
<cc:Agent>
<dc:title>Nicu Buculei</dc:title>
</cc:Agent>
</dc:rights>
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
</cc:Work>
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
</cc:License>
</rdf:RDF>
</metadata>
</g></g>
</g></Content></Page></Pages></Document>

View file

@ -3,7 +3,8 @@ import module namespace gr = 'apb.graphviz' at "graphviz.xqm" ;
import module namespace dotml = 'http://www.martin-loetzsch.de/DOTML' at "dotml.xqm";
declare variable $src:=resolve-uri("data/samples/");
declare variable $dest:=resolve-uri("data/thumbs/");
declare variable $opts:=("-Tgif",'-Gdpi=100','-Gsize="1.2,1.2"','-Gratio="fill"');
declare variable $opts:=("-Tgif","-Gsize=1.2,1.2",'-Gfill=auto');
declare function local:thumb($dot,$name){
let $a:=gr:dot-executeb($dot,$opts)

View file

@ -1,15 +1,17 @@
<li class="media thumbnail" style="height:128px;width:20em;">
<a class="pull-left " href="{$url($item)}">
<img class="media-object" src="/graphxq/data/thumbs/{$item/url}.gif" style="width:120px;height:120px"/>
</a>
<li class="media ">
<a href="{$url($item)}" class="thumbnail"
style="height:128px;width:20em; background-color:#EEEEEE">
<div class="pull-left media-object" style="height:120px;width:120px;">
<img src="/graphxq/data/thumbs/{$item/url}.gif"
style="max-height:100%; max-width:100%;" />
</div>
<div class="media-body">
<h4 class="media-heading">
<a href="{$url($item)}">
<h4 class="media-heading">
<img src="/graphxq/{$item/url/@type}.png" />
{$item/title/fn:string()}</a>
{$item/title/fn:string()}
</h4>
{$item/description/node()}
</div>
</a>
</li>

View file

@ -1,8 +1,6 @@
<div class="row-fluid">
<h2>Samples ({fn:count($items/item )})</h2>
<h2>Samples ({fn:count($items/item )})</h2>
<ul class=" thumbnails media-list">
{$partial("item1.xml","item",$items/item)}
</ul>
</div>