Subject: Re: [xsl] Saxon xml parser error From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: 21 Aug 2005 06:07:49 +0100 |
>>>>> "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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Saxon xml parser error, Kenneth Stephen | Thread | RE: [xsl] Saxon xml parser error, Michael Kay |
[xsl] Saxon xml parser error, Kenneth Stephen | Date | Re: [xsl] xsl:result-document and S, Colin Paul Adams |
Month |