Subject: RE: Saxon xml parser error
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 21 Aug 2005 13:29:09 +0100
|
Saxon is telling you pretty clearly that the message comes from the XML
parser, so if it were a bug, it would be a bug in the XML parser, not in
Saxon.
A quick look at production 23 of the XML specification, however, should tell
you that the pseudo-attributes within the XML declaration have to be in a
fixed order.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Kenneth Stephen [mailto:marvin.the.cynical.robot@xxxxxxxxx]
> Sent: 21 August 2005 05:29
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Saxon xml parser error
>
> Hi,
>
> When I process the following file :
>
> <?xml version="1.0" standalone="no" encoding="UTF-8"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
> <svg xmlns="http://www.w3.org/2000/svg"
> xmlns:img-parms="http://xml.megadodo.umb/svg"
> img-parms:width="" img-parms:height="" img-parms:x=""
> img-parms:y="">
> <rect img-parms:x="" img-parms:y="" img-parms:width=""
> img-parms:height=""
> img-parms:rx="" img-parms:ry="" img-parms:style="">
> <img-parms:data />
> </rect>
> </svg>
>
> .....saxon tells me:
>
> SXXP0003: Error reported by XML parser: No more pseudo
> attributes are allowed.
>
> I've discovered that if I modify the xml declaration to be :
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>
> ....then the parser doesnt complain. What does the error mean and
> is this a bug in Saxon (v8.5)?
>
> Thanks,
> Kenneth
|