You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Jeremy Hughes (JIRA)" <ji...@apache.org> on 2006/07/19 11:20:15 UTC

[jira] Created: (WSCOMMONS-61) roundtrip test attB002.xsd fails

roundtrip test attB002.xsd fails
--------------------------------

                 Key: WSCOMMONS-61
                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-61
             Project: WS-Commons
          Issue Type: Bug
          Components: XmlSchema
            Reporter: Jeremy Hughes
         Assigned To: Jeremy Hughes
            Priority: Minor


Roundtripping attB002.xsd fails. This input:

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
...
	<xsd:complexType name="attRef">
...
	</xsd:complexType>
	<xsd:element name="doc">
		<xsd:complexType>
			<xsd:choice>
				<xsd:element name="elem" type="attRef"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>

creates this output

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified" xmlns:gen526="">
...
<xsd:complexType name="attRef">
...
</xsd:complexType>
<xsd:element name="doc">
<xsd:complexType>
<xsd:choice>
<xsd:element name="elem" type="gen526:attRef"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>

the gen526 (run it again and the number will be different) namespace prefix is used rather than referring to the complexType in the schema. Note: there is no targetNamespace defined.

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-61) roundtrip test attB002.xsd fails

Posted by "Jeremy Hughes (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-61?page=all ]

Jeremy Hughes resolved WSCOMMONS-61.
------------------------------------

    Resolution: Fixed

ant testw3c was:

testw3c:
    [junit] Running tests.w3c.TestW3CSchemaBucket
    [junit] Tests run: 4447, Failures: 670, Errors: 2251, Time elapsed: 264.625 sec
    [junit] Test tests.w3c.TestW3CSchemaBucket FAILED

ie 2921 bad

now:

testw3c:
    [junit] Running tests.w3c.TestW3CSchemaBucket
    [junit] Tests run: 4447, Failures: 2124, Errors: 514, Time elapsed: 234.407 sec
    [junit] Test tests.w3c.TestW3CSchemaBucket FAILED

ie 2638 bad

> roundtrip test attB002.xsd fails
> --------------------------------
>
>                 Key: WSCOMMONS-61
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-61
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>            Reporter: Jeremy Hughes
>         Assigned To: Jeremy Hughes
>            Priority: Minor
>
> Roundtripping attB002.xsd fails. This input:
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> ...
> 	<xsd:complexType name="attRef">
> ...
> 	</xsd:complexType>
> 	<xsd:element name="doc">
> 		<xsd:complexType>
> 			<xsd:choice>
> 				<xsd:element name="elem" type="attRef"/>
> 			</xsd:choice>
> 		</xsd:complexType>
> 	</xsd:element>
> </xsd:schema>
> creates this output
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified" xmlns:gen526="">
> ...
> <xsd:complexType name="attRef">
> ...
> </xsd:complexType>
> <xsd:element name="doc">
> <xsd:complexType>
> <xsd:choice>
> <xsd:element name="elem" type="gen526:attRef"/>
> </xsd:choice>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> the gen526 (run it again and the number will be different) namespace prefix is used rather than referring to the complexType in the schema. Note: there is no targetNamespace defined.

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Closed: (WSCOMMONS-61) roundtrip test attB002.xsd fails

Posted by "Jeremy Hughes (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-61?page=all ]

Jeremy Hughes closed WSCOMMONS-61.
----------------------------------


> roundtrip test attB002.xsd fails
> --------------------------------
>
>                 Key: WSCOMMONS-61
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-61
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>            Reporter: Jeremy Hughes
>         Assigned To: Jeremy Hughes
>            Priority: Minor
>
> Roundtripping attB002.xsd fails. This input:
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> ...
> 	<xsd:complexType name="attRef">
> ...
> 	</xsd:complexType>
> 	<xsd:element name="doc">
> 		<xsd:complexType>
> 			<xsd:choice>
> 				<xsd:element name="elem" type="attRef"/>
> 			</xsd:choice>
> 		</xsd:complexType>
> 	</xsd:element>
> </xsd:schema>
> creates this output
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified" xmlns:gen526="">
> ...
> <xsd:complexType name="attRef">
> ...
> </xsd:complexType>
> <xsd:element name="doc">
> <xsd:complexType>
> <xsd:choice>
> <xsd:element name="elem" type="gen526:attRef"/>
> </xsd:choice>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> the gen526 (run it again and the number will be different) namespace prefix is used rather than referring to the complexType in the schema. Note: there is no targetNamespace defined.

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org