On Sunday, February 10, 2002, at 04:11 PM, James Strachan wrote:

> Yes thats right. The only way to specify the ID and IDREF types is to use
> DTDs or some other schema language. Its a shame this kinda stuff wasn't in
> straight XML without the DTD/Schema layer being required but thats another
> story...
>
> From betwixt's perspective I guess the XMLBeanInfo should know what ID
> attribute ('foo') and IDREF attribute ('fooRef') to use.

good - that's what i was thinking too :)

maybe it'll be possible to do something with contexts and expressions to 
get the correct value without adding special cases to BeanWriter.

to make life easier we could add properties (defaulting to the 
conventional names) to XMLIntrospector. XMLIntrospector would then use 
these to add appropriate AttributeDescription's when introspecting.

- robert

>
> James
> ----- Original Message -----
> From: "robert burrell donkin" <[EMAIL PROTECTED]>
> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
> Sent: Sunday, February 10, 2002 1:57 PM
> Subject: [betwixt] ID and IDREF attributes
>
>
>> the way that i read the xml spec, though 'id' and 'idref' are the most
>> commonly chosen (conventional) attribute names for the unique attributes
>> of type ID and IDREF, it is possible that each element could have
>> different names. for example, in the same document an element <alpha>
>> might  have attribute 'foo' specified as ID and 'fooRef' as IDREF whilst
>> element <beta> uses attributes 'foobar' and 'foobarRef'.
>>
>> am i right?
>>
>> - robert
>>
>>
>> --
>> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED].
> org>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED].
> org>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to