Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Duplicate attribute uses (Xerces bug?)

From: Kasimier Buchcik <kbuchcik@---------.-->
To: kbuchcik@---------.--
Date: 9/12/2005 10:11:00 PM
Hi,
On Mon, 2005-09-12 at 16:44 +0200, Kasimier Buchcik wrote:
> Hi,
> 
> On Mon, 2005-09-12 at 16:00 +0200, Kasimier Buchcik wrote:
> > Hi,
> 
> [...]
> 
> > > Now, the error reported by Xerces is wrong but do you see a benefit of 
> > > allowing this? IMO a duplicate attribute element should be an error.
> > 
> > Yes, you are right; I see no benefit, although I would tend to generate
> > a warning instead of an error.
> 
> [...]
> 
> Additionally generating a warning if prohibition is used with
> extensions would be good. The following does not produce neither
> a warning nor an error with Xerces-J and XSV:
> 
> <xsd:complexType name="base">
> 	<xsd:attribute name="boo" use="optional"/>
> </xsd:complexType>
> 
> <xsd:complexType name="type-1">
> 	<xsd:complexContent>
> 		<xsd:extension base="f:base">				
> 			<xsd:attribute name="boo" use="prohibited"/>
> 		</xsd:extension>
> 	</xsd:complexContent>
> </xsd:complexType>
> Kasimier

:-( Once more, a correction: XSV reports a schema error - although
with a misleading explanation.

"attempt to extend with an attribute already declared {{None}:boo}"

Regards,

Kasimier

From henryzab@h... Tue Sep 13 06:10:20 2005
Received: from wiggum.w3.org ([128.30.52.


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent