W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

Re: XSD invalid attribute 'use' in element 'attribute [xsd/java/oracle]

From: Paul Kiel <paul@hr-xml.org>
Date: Tue, 11 Feb 2003 14:25:51 -0500
Message-ID: <0e5301c2d203$63c3b3e0$6401a8c0@pkiel2>
To: <xmlschema-dev@w3.org>, "Piotr Puszcz" <proint@poczta.onet.pl>

Hi Peter,

I believe I came across this same issue with version 9.2.0.0 of oracle's
parser.  I thought it was a bug, as extensive testing with other parsers did
not produce the same error. What version are you using?

For what it's worth,
Paul Kiel
(P.S. Peter - I have a zip of files that reproduces this error somewhere
around here.  If you report this problem, I can sent it to you if you think
it will help.)



----- Original Message -----
From: "Piotr Puszcz" <proint@poczta.onet.pl>
To: <xmlschema-dev@w3.org>
Sent: Tuesday, February 11, 2003 8:15 AM
Subject: XSD invalid attribute 'use' in element 'attribute [xsd/java/oracle]


>
> hi all,
> I am trying to parse xml document against xsd schema with java class
> embedded in oracle stored procedure. my xsd looks like:
>
> <?xml version="1.0" encoding="ISO-8859-2"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="PERSON">
> <xs:complexType>
> <xs:attribute ref="NAME" use="required"/>
> </xs:complexType>
> </xs:element>
> <xs:attribute name="NAME" type="xs:string"/>
> </xs:schema>
>
> i have downloaded xdk for plsql from oracle, and example parsing class.
> but when i try to instantiate the XMLSchema class:
>
> XMLSchema schemadoc = (XMLSchema)builder.build(in,null);
>
> parser exception is being thrown:
> <Line 6, Column 45>: XSD-2026: (Error) Invalid attribute 'use' in
> element 'attribute'
>
> its odd, because the schema was built with XmlSpy, and it was ok.
>
> is this some kind of restriction when using oracle xdk classes?
>
> hope someone is through it already,
> regards,
> peter.
>
> --------------r-e-k-l-a-m-a-----------------
>
>
> Tanie bilety lotnicze!
> http://samoloty.onet.pl
>
>
Received on Tuesday, 11 February 2003 14:24:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT