Yep - my fault - it seems a new version of xml.xsd was released as of 2005/08. The version of xml.xsd we have checked in is the 2001/03 version which does not include that. So, no, at the moment we don't have any support for that attribute.
I've created a JIRA (http://issues.apache.org/jira/browse/XMLBEANS-214) to track this issue. Cheers, Lawrence > -----Original Message----- > From: Beagan, Patrick [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 12, 2005 2:47 PM > To: [email protected] > Subject: RE: id questions > > Ok. I guess this means that the xml:id attribute is not implemented > yet. > > Maybe because it is still a W3C recommendation: > http://www.w3.org/TR/xml-id/ Some parsers already support it and we're > using it. > > Thanks. > > > > -----Original Message----- > From: Lawrence Jones [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 12, 2005 3:58 PM > To: [email protected] > Subject: RE: id questions > > > Hi Patrick > > I think you mean to refer to xs:ID where xs refers to namespace > http://www.w3.org/2001/XMLSchema? (The xml prefix is reserved. When used > it refers to http://www.w3.org/XML/1998/namespace but the only > attributes declared are xml:space and xml:lang). > > If so then instead of > > <xs:attribute ref="xml:id"/> > > I think you would need something like: > > <xs:attribute name="id" type="xs:ID"/> > > The name of such an attribute does not have to be "id" - it can be > whatever you like and you will get an appropriate setter on the > generated XmlBean. If you use "id" then you should get a setId() setter. > If you use "xmlId" you'll get a setXmlId() setter. > > Cheers, > > Lawrence > > > -----Original Message----- > > From: Beagan, Patrick [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 12, 2005 11:41 AM > > To: [email protected] > > Subject: xml:id questions > > > > Is xml:id supported in xmlbeans 2.0.0? scomp throws errors when this > > element is encountered. > > > > > > In my gsa.xsd I have : > > > > <xs:attribute ref="xml:id"/> > > > > Executing : scomp -noupa -out myjar.jar gsa.xsd give me the error: > > gsa.xsd:93: error: src-resolve: attribute > > '[EMAIL PROTECTED]://www.w3.org/XML/1998/namespace' not found. > > > > > > This is strange to me because the namespace in the schema refers to > > http://www.w3.org/2001/XMLSchema . If I leave this attribute out, > > scomp works properly. But I need my xmlbeans objects to have a > > setXmlId() method available, which it is not. Any ideas? > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

