[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Saxon xml parser error

Subject: Re: Saxon xml parser error
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 21 Aug 2005 06:07:49 +0100
no more pseudo attributes
>>>>> "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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.