You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/09/10 11:40:44 UTC
[jira] Created: (XMLBEANS-57) scomp failure for XSD namespace "DAV:"
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XMLBEANS-57
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XMLBEANS-57
Summary: scomp failure for XSD namespace "DAV:"
Type: Bug
Status: Unassigned
Priority: Major
Project: XMLBeans
Components:
Compiler
Versions:
Version 1.0.3
Assignee:
Reporter: Subramanian Venkatesan
Created: Fri, 10 Sep 2004 2:40 AM
Updated: Fri, 10 Sep 2004 2:40 AM
Environment: Faced this problem on Windows XP professional SUN JDK 1.4.2
XMLBeans 1.0.3
Description:
I had a problem compiling a WebDAV XSD like so:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" targetNamespace="DAV:" xmlns="DAV:" > ... </xs:schema>
The scomp command was choking on the "DAV:" when it tried to generate a
package name from the XSD.
The problem was happening due to a namespace of "DAV:" in the XSD. I changed the org.apache.xmlbeans.impl.common.NameUtil Java file line 529 to
if (buf.length() > 0)
{
return buf.substring(0, buf.length() - 1); // chop off extra dot
}
else
{
return buf.toString(); // chop off extra dot
}
>From
return buf.substring(0, buf.length() - 1); // chop off extra dot
Now, it seems to work...
---------------------------------------------------------------------
JIRA INFORMATION:
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] Commented: (XMLBEANS-57) scomp failure for XSD namespace "DAV:"
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://nagoya.apache.org/jira/browse/XMLBEANS-57?page=comments#action_55599 ]
Jacob Danner commented on XMLBEANS-57:
--------------------------------------
This is indeed fixed for V2. Regression Test to be added.
-Can the fix be backported?
> scomp failure for XSD namespace "DAV:"
> --------------------------------------
>
> Key: XMLBEANS-57
> URL: http://nagoya.apache.org/jira/browse/XMLBEANS-57
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 1.0.3
> Environment: Faced this problem on Windows XP professional SUN JDK 1.4.2
> XMLBeans 1.0.3
> Reporter: Subramanian Venkatesan
> Assignee: Jacob Danner
> Fix For: Version 2 Beta 1
>
> I had a problem compiling a WebDAV XSD like so:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified" targetNamespace="DAV:" xmlns="DAV:" > ... </xs:schema>
> The scomp command was choking on the "DAV:" when it tried to generate a
> package name from the XSD.
> The problem was happening due to a namespace of "DAV:" in the XSD. I changed the org.apache.xmlbeans.impl.common.NameUtil Java file line 529 to
> if (buf.length() > 0)
> {
> return buf.substring(0, buf.length() - 1); // chop off extra dot
> }
> else
> {
> return buf.toString(); // chop off extra dot
> }
> From
> return buf.substring(0, buf.length() - 1); // chop off extra dot
> Now, it seems to work...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.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] Closed: (XMLBEANS-57) scomp failure for XSD namespace "DAV:"
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-57?page=all ]
Jacob Danner closed XMLBEANS-57:
--------------------------------
Assign To: (was: Jacob Danner)
Fix verified, regression case automated, closing
> scomp failure for XSD namespace "DAV:"
> --------------------------------------
>
> Key: XMLBEANS-57
> URL: http://issues.apache.org/jira/browse/XMLBEANS-57
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 1.0.3
> Environment: Faced this problem on Windows XP professional SUN JDK 1.4.2
> XMLBeans 1.0.3
> Reporter: Subramanian Venkatesan
> Fix For: Version 2 Beta 1
>
> I had a problem compiling a WebDAV XSD like so:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified" targetNamespace="DAV:" xmlns="DAV:" > ... </xs:schema>
> The scomp command was choking on the "DAV:" when it tried to generate a
> package name from the XSD.
> The problem was happening due to a namespace of "DAV:" in the XSD. I changed the org.apache.xmlbeans.impl.common.NameUtil Java file line 529 to
> if (buf.length() > 0)
> {
> return buf.substring(0, buf.length() - 1); // chop off extra dot
> }
> else
> {
> return buf.toString(); // chop off extra dot
> }
> From
> return buf.substring(0, buf.length() - 1); // chop off extra dot
> Now, it seems to work...
--
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
[jira] Resolved: (XMLBEANS-57) scomp failure for XSD namespace "DAV:"
Posted by xm...@xml.apache.org.
Message:
The following issue has been resolved as FIXED.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XMLBEANS-57
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XMLBEANS-57
Summary: scomp failure for XSD namespace "DAV:"
Type: Bug
Status: Resolved
Priority: Major
Resolution: FIXED
Project: XMLBeans
Components:
Compiler
Fix Fors:
Version 2 Beta 1
Versions:
Version 1.0.3
Assignee: Jacob Danner
Reporter: Subramanian Venkatesan
Created: Fri, 10 Sep 2004 2:40 AM
Updated: Fri, 22 Oct 2004 7:42 PM
Environment: Faced this problem on Windows XP professional SUN JDK 1.4.2
XMLBeans 1.0.3
Description:
I had a problem compiling a WebDAV XSD like so:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" targetNamespace="DAV:" xmlns="DAV:" > ... </xs:schema>
The scomp command was choking on the "DAV:" when it tried to generate a
package name from the XSD.
The problem was happening due to a namespace of "DAV:" in the XSD. I changed the org.apache.xmlbeans.impl.common.NameUtil Java file line 529 to
if (buf.length() > 0)
{
return buf.substring(0, buf.length() - 1); // chop off extra dot
}
else
{
return buf.toString(); // chop off extra dot
}
>From
return buf.substring(0, buf.length() - 1); // chop off extra dot
Now, it seems to work...
---------------------------------------------------------------------
JIRA INFORMATION:
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