You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Elisha Berns <e....@computer.org> on 2005/06/21 01:48:35 UTC
question about 'anyAttribute' declarations and PSVI
Given the following type definition:
<xsd:complexType name="anyType1">
<xsd:sequence>
<xsd:element name="name1" type="xsd:string"/>
<xsd:any namespace="##any" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="anyURI1" type="xsd:anyURI" use="optional"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:complexType>
How is the anyAttribute represented in the PSVI classes, and how do you
get the object representing it from the attribute use list?
Thanks,
Elisha Berns
e.berns@computer.org
tel. (310) 556 - 8332
fax (310) 556 - 2839
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
Re: question about 'anyAttribute' declarations and PSVI
Posted by Neil Graham <ne...@ca.ibm.com>.
Hi Elisha,
You don't get the attribute wildcard from the list of attribute uses. You
get it via XSComplexTypeDefinition::getAttributeWildcard(). XSWildcard
objects can represent both element and attribute wildcards. And note
there can be only one attribute wildcard associated with a complex type
definition, so that this is never ambiguous.
Cheers,
Neil
Neil Graham
Manager, XML Parser Development
IBM Toronto Lab
Phone: 905-413-3519, T/L 969-3519
E-mail: neilg@ca.ibm.com
"Elisha Berns" <e....@computer.org>
06/20/2005 07:48 PM
Please respond to
c-dev
To
"Xerces C++ Development" <c-...@xerces.apache.org>
cc
Subject
question about 'anyAttribute' declarations and PSVI
Given the following type definition:
<xsd:complexType name="anyType1">
<xsd:sequence>
<xsd:element name="name1"
type="xsd:string"/>
<xsd:any namespace="##any"
processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="anyURI1" type="xsd:anyURI"
use="optional"/>
<xsd:anyAttribute namespace="##other"
processContents="lax"/>
</xsd:complexType>
How is the anyAttribute represented in the PSVI classes, and how do you
get the object representing it from the attribute use list?
Thanks,
Elisha Berns
e.berns@computer.org
tel. (310) 556 - 8332
fax (310) 556 - 2839
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org