[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Saxon xml parser error
>>>>> "Kenneth" == Kenneth Stephen <marvin.the.cynical.robot@xxxxxxxxx> writes: Kenneth> Hi, When I process the following file : Kenneth> <?xml version="1.0" standalone="no" encoding="UTF-8"?> Kenneth> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" Kenneth> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg Kenneth> xmlns="http://www.w3.org/2000/svg" Kenneth> xmlns:img-parms="http://xml.megadodo.umb/svg" Kenneth> img-parms:width="" img-parms:height="" img-parms:x="" Kenneth> img-parms:y=""> <rect img-parms:x="" img-parms:y="" Kenneth> img-parms:width="" img-parms:height="" img-parms:rx="" Kenneth> img-parms:ry="" img-parms:style=""> <img-parms:data /> Kenneth> </rect> </svg> Kenneth> .....saxon tells me: Kenneth> SXXP0003: Error reported by XML parser: No more pseudo Kenneth> attributes are allowed. Kenneth> I've discovered that if I modify the xml declaration Kenneth> to be : Kenneth> <?xml version="1.0" encoding="UTF-8" standalone="no"?> Kenneth> ....then the parser doesnt complain. What does the Kenneth> error mean and is this a bug in Saxon (v8.5)? The error means that no more pseudo-attributes are allowed following the standalone pseudo-attribute. And no, it's not a bug in the XML parser - it was a mal-formed XML document, which you corrected. If you look at the XML recommendation (1.0 or 1.1) you will see that the grammar for the XML declaration specifies the order of the pseudo-attributes - version, then encoding, then standalone declaration. -- Colin Adams Preston Lancashire
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|