Hi,
I'm attempting to use the new parse-xml code in ACL 6 to load and
parse an SVG (http://www.w3.org/Graphics/SVG/Overview.htm8) file. The
file is a standard XML document with a referenced DTD. When I attempt
to parse the file I get the message:
(with-open-file (p "test.svg")
(parse-xml p :content-only p))
Error: XML not well-formed - st0 must have entity declaration before
being referenced
However, it appears that this entity in the input file is defined:
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- test.svg -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"
[
<!ENTITY st0 "fill:none;stroke:#1A1A1A;stroke-miterlimit:10;">
]>
<svg width="54pt" height="73pt" viewBox="0 0 549.576 736.709"
xml:space="preserve">
<g id="0020_ID" style="&st0;">
<path style="&st0;" d="M16.776,200.583h12.96v-16.56h-12.96v16.56z"/>
</g>
</svg>
Does anyone have any suggestions regarding what I may be doing wrong?
Or is this something with the XML parser?
Thanks in advance,
Jonathan
ยทยทยท@stubsNOSPAM.com