You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "David Jencks (JIRA)" <xm...@xml.apache.org> on 2005/03/11 19:47:57 UTC
[jira] Created: (XMLBEANS-125) MyEl.type.qnameSetForWildcardAttributes() does not work
MyEl.type.qnameSetForWildcardAttributes() does not work
-------------------------------------------------------
Key: XMLBEANS-125
URL: http://issues.apache.org/jira/browse/XMLBEANS-125
Project: XMLBeans
Type: Bug
Versions: Version 2 Beta 1
Reporter: David Jencks
MyEl.type.qnameSetForWildcardAttributes() does not work. There are no tests for it and it is not returning any qnames for me. Constructing a QNameSet explicitly to match the schema gives the expected results from selectChildren.
schema:
<xs:complexType name="xml-attributeType">
<xs:sequence>
<xs:any namespace="##other"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
code:
//does NOT work:
XmlObject[] anys = xmlAttributeType.selectChildren(XmlAttributeType.type.qnameSetForWildcardElements());
//Does work:
// String uri = "http://geronimo.apache.org/xml/ns/deployment";
// XmlObject[] anys = xmlAttributeType.selectChildren(QNameSet.forWildcardNamespaceString("##other", uri));
if (anys.length != 1) {
throw new DeploymentException("Unexpected count of xs:any elements in xml-attribute " + anys.length + " qnameset: " + XmlAttributeType.type.qnameSetForWildcardElements());
}
results in:
org.apache.geronimo.common.DeploymentException: Unexpected count of xs:any elements in xml-attribute 0 qnameset: QNameSet+()
Fetching "anys" with the commented out lines works fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Resolved: (XMLBEANS-125) MyEl.type.qnameSetForWildcardAttributes() does not work
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-125?page=all ]
Radu Preotiuc-Pietro resolved XMLBEANS-125:
-------------------------------------------
Resolution: Fixed
Fix Version: Version 2
SVN revision 165700.
> MyEl.type.qnameSetForWildcardAttributes() does not work
> -------------------------------------------------------
>
> Key: XMLBEANS-125
> URL: http://issues.apache.org/jira/browse/XMLBEANS-125
> Project: XMLBeans
> Type: Bug
> Versions: Version 2 Beta 1
> Reporter: David Jencks
> Assignee: Radu Preotiuc-Pietro
> Fix For: Version 2
>
> MyEl.type.qnameSetForWildcardAttributes() does not work. There are no tests for it and it is not returning any qnames for me. Constructing a QNameSet explicitly to match the schema gives the expected results from selectChildren.
> schema:
> <xs:complexType name="xml-attributeType">
> <xs:sequence>
> <xs:any namespace="##other"/>
> </xs:sequence>
> <xs:attribute name="name" type="xs:string"/>
> </xs:complexType>
> code:
> //does NOT work:
> XmlObject[] anys = xmlAttributeType.selectChildren(XmlAttributeType.type.qnameSetForWildcardElements());
> //Does work:
> // String uri = "http://geronimo.apache.org/xml/ns/deployment";
> // XmlObject[] anys = xmlAttributeType.selectChildren(QNameSet.forWildcardNamespaceString("##other", uri));
> if (anys.length != 1) {
> throw new DeploymentException("Unexpected count of xs:any elements in xml-attribute " + anys.length + " qnameset: " + XmlAttributeType.type.qnameSetForWildcardElements());
> }
> results in:
> org.apache.geronimo.common.DeploymentException: Unexpected count of xs:any elements in xml-attribute 0 qnameset: QNameSet+()
> Fetching "anys" with the commented out lines works fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org