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

List:       xmlbeans-dev
Subject:    Re: [jira] Updated: (XMLBEANS-51) value for Xlink incorrect when
From:       Yuzo Kanomata <yuzok () ics ! uci ! edu>
Date:       2004-11-19 2:05:02
Message-ID: 788413.1100801102 () YUZOD500 ! ics ! uci ! edu
[Download RAW message or body]

Yeah, I was having a hard time finding the place in the Schema Compiler ... 
I thought it might have been a simple off-by-one error, but I guess I'm 
wrong.

The way I'm using XML Bean is to both validate on read of the XML file and 
use the XML Bean objects to make the XML documents -- the idea being to 
have one tool to do both, which it looked like you had with newInstance 
methods ... just not working with XLink.

BTW I was using the toString() method to write the XML out to file. Is this 
the best way?

Thanks,

Yuzo

PS were you guys at Apachecon?

Anyway I was using XML Bean to do both the

--On Thursday, November 18, 2004 5:02 PM -0800 "Jacob Danner (JIRA)" 
<xmlbeans-dev@xml.apache.org> wrote:

>      [ http://nagoya.apache.org/jira/browse/XMLBEANS-51?page=history ]
>
> Jacob Danner updated XMLBEANS-51:
> ---------------------------------
>
>     Assign To:     (was: Eric Vasilik)
>          type: Wish  (was: Bug)
>       Version: unspecified
>                    (was: Version 1.0.3)
>
> a chat with radu and it sounds like this can't be done at present. Would
> be a nice feature to have.
>
>> value for Xlink incorrect when creating new object
>> --------------------------------------------------
>>
>>          Key: XMLBEANS-51
>>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-51
>>      Project: XMLBeans
>>         Type: Wish
>>     Versions: unspecified
>>  Environment: Sun Solaris 8, Java sdk 1.4.2_05
>>     Reporter: Yuzo Kanomata
>>     Priority: Minor
>
>>
>> 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 >
>
> --
> 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

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

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