[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-51) value for Xlink incorrect when creating new object
From:       xmlbeans-dev () xml ! apache ! org
Date:       2004-08-20 0:18:23
Message-ID: 1147040773.1092961103280.JavaMail.apache () nagoya
[Download RAW message or body]

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-51

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-51
    Summary: value for Xlink incorrect when creating new object 
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: XMLBeans
   Versions:
             Version 1.0.3

   Assignee: 
   Reporter: Yuzo Kanomata

    Created: Thu, 19 Aug 2004 5:18 PM
    Updated: Thu, 19 Aug 2004 5:18 PM
Environment: Sun Solaris 8, Java sdk 1.4.2_05

Description:
When creating new XML Objects, my defined "xmlns:xlink" attribute is shortened to \
"xmlns:xlin" and all reference to "xlink" become "xlin".

For example, I have defined in the schema:
<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'
            xmlns:xlink='http://www.w3.org/1999/xlink'>

...

<xsd:element name='foo'>
<xsd:complexType>
   <xsd:attribute ref='xlink:type' fixed='simple'/>
... etc


So when I create foo ala:

Foo f = FooDocument.Foo.Factory.newInstance();
f.setType("URL-to-type");


If you foo.toSting(), you get:
<foo xmlns:lin="URL-to-type" ... etc >

instead of the expected:
<foo xmlns:link="URL-to-type" ... etc >







---------------------------------------------------------------------
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:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic