You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sylvain Wallez <sy...@anyware-tech.com> on 2003/08/01 15:04:17 UTC

[Woody] ids or refs ?

While reviewing the file formats, I was wondering...

Currently, Woody uses the "id" attribute everywhere for identifiers be 
there on a defining element (e.g. <wd:field>) or a referring element 
(e.g. <wi:widget>).

Now that we will start to mix namespaces and have format & datatype 
dictionaries referred to by other files, it seems to me cleaner and more 
understandable to differentiate defining and referring attribute.

For this, I propose to keep the current "id" on defining elements and 
use "ref" attribute on referring elements.

Thoughts ? Is it nitpicking ?

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Re: [Woody] ids or refs ?

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Bruno Dumon wrote:

>On Fri, 2003-08-01 at 15:04, Sylvain Wallez wrote:
>  
>
<snip/>

>>For this, I propose to keep the current "id" on defining elements and 
>>use "ref" attribute on referring elements.
>>
>>Thoughts ? Is it nitpicking ?
>>    
>>
>
>No, ref is better.
>  
>
Kewl ;-)

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Re: [Woody] ids or refs ?

Posted by Bruno Dumon <br...@outerthought.org>.
On Fri, 2003-08-01 at 15:04, Sylvain Wallez wrote:
> While reviewing the file formats, I was wondering...
> 
> Currently, Woody uses the "id" attribute everywhere for identifiers be 
> there on a defining element (e.g. <wd:field>) or a referring element 
> (e.g. <wi:widget>).
> 
> Now that we will start to mix namespaces and have format & datatype 
> dictionaries referred to by other files, it seems to me cleaner and more 
> understandable to differentiate defining and referring attribute.
> 
> For this, I propose to keep the current "id" on defining elements and 
> use "ref" attribute on referring elements.
> 
> Thoughts ? Is it nitpicking ?

No, ref is better.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org