XML writing with yaxo

John Leuner jewel at pixie.co.za
Wed Feb 16 09:41:58 PST 2005


I adding the XML Writer code to yaxo:

Now you can generate canonical xml.

Still missing validation/namespaces. I can't see any evidence that the
YAXO parser in squeak uses namespaces (there is no method call that
turns the functionality on). I wonder if it is well tested?

John


Slate 45> load: 'src/lib/yaxo.slate'.
Loading 'src/lib/yaxo.slate'
<svg height="297mm" id="svg1" inkscape:version="0.40+cvs"
sodipodi:docbase="/home/jewel" sodipodi:docname="star1.svg"
sodipodi:version="0.32" width="210mm" xmlns="http://www.w3.org/2000/svg"
xmlns:cc="http://web.resource.org/cc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:svg="http://www.w3.org/2000/svg">image/svg+xml<defs
id="defs3">image/svg+xml</defs><sodipodi:namedview bordercolor="#666666"
borderopacity="1.0" id="base" inkscape:current-layer="layer1"
inkscape:cx="375.00000" inkscape:cy="520.00000"
inkscape:document-units="px" inkscape:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:window-height="711"
inkscape:window-width="938" inkscape:window-x="22" inkscape:window-y="0"
inkscape:zoom="0.35000000"
pagecolor="#ffffff">image/svg+xml</sodipodi:namedview><metadata
id="metadata4">image/svg+xml<rdf:RDF id="RDF5">image/svg+xml<cc:Work
id="Work6" rdf:about="">image/svg+xml<dc:format
id="format7">image/svg+xml</dc:format><dc:type id="type9"
rdf:resource="http://purl.org/dc/dcmitype/StillImage">image/svg+xml</dc:type></cc:Work></rdf:RDF></metadata><g id="layer1" inkscape:groupmode="layer" inkscape:label="Layer 1">image/svg+xml<path d="M 225.71428,206.64790 L 125.91810,195.11688 L 51.894113,263.03370 L 32.022043,164.55861 L -55.445356,115.14506 L 32.069216,65.815125 L 52.035374,-32.640938 L 125.99442,35.346576 L 225.80159,23.910924 L 183.99622,115.25946 L 225.71428,206.64790 z " id="path2" inkscape:flatsided="false" inkscape:randomized="0.0000000" inkscape:rounded="0.0000000" sodipodi:arg1="0.62879629" sodipodi:arg2="1.2571148" sodipodi:cx="100.00000" sodipodi:cy="115.21933" sodipodi:r1="155.44537" sodipodi:r2="83.996231" sodipodi:sides="5" sodipodi:type="star" style="fill:#ebff10;fill-opacity:0.64550263;stroke:#d40a18;stroke-width:10.390000;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:2.0000000;stroke-opacity:1.0000000" transform="matrix(2.273599,0.000000,0.000000,2.418935,174.3744,167.9724)">image/svg+xml</path><path d="M 345.71429,423.79074 C 354.45270,431.52638 339.59803,439.38643 332.85715,438.31455 C 314.58979,435.40982 310.28711,412.49998 316.66667,398.07645 C 328.07822,372.27615 361.48685,367.30146 384.28572,380.21931 C 417.74398,399.17678 423.48985,444.29606 403.80953,475.21931 C 377.57877,516.43515 320.38804,522.94694 281.42858,496.40979 C 232.40207,463.01550 225.12886,393.60174 258.57143,346.64788 C 299.07487,289.78047 380.78955,281.74799 435.71430,322.12407 C 500.44120,369.70589 509.23200,463.76690 461.90477,526.64789 C 407.26362,599.24647 300.82745,608.79516 230.00001,554.50503 C 149.52136,492.81713 139.21493,373.98635 200.47620,295.21931 C 269.20208,206.85459 400.44124,195.79046 487.14287,264.02883 C 583.39811,339.78636 595.21997,483.44402 520.00001,578.07646" id="path93" sodipodi:argument="-18.124952" sodipodi:cx="345.71429" sodipodi:cy="423.79074" sodipodi:expansion="1.0000000" sodipodi:radius="232.76511" sodipodi:revolution="3.0000000" sodipodi:t0="0.0000000" sodipodi:type="spiral" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:26.650000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="matrix(0.754698,0.000000,0.000000,0.754698,127.6625,136.3703)">image/svg+xml</path></g></svg>Nil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yaxo.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 7327 bytes
Desc: not available
Url : /archives/slate/attachments/20050217/89f35966/yaxo.tar.bin


More information about the Slate mailing list