xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xmlbeans-...@xml.apache.org
Subject [jira] Resolved: (XMLBEANS-57) scomp failure for XSD namespace "DAV:"
Date Sat, 23 Oct 2004 02:42:36 GMT

   The following issue has been resolved as FIXED.

View the issue:

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
   Fix Fors:
             Version 2 Beta 1
             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

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
        	return buf.toString(); // chop off extra dot


     	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:

If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org

View raw message